Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6437 Ansichten

I want to know how I can move a value from a new field from stock.picking to the stock.move ?

Thanks

Avatar
Verwerfen
Beste Antwort

I would suggest to create a related field using picking_id (reference to stock_picking) inside stock_move by inheriting it.

example:

suppose need to pull origin field from stock_picking to stock_move.

write here


picking_origin = fields.Integer(related='picking_id.origin', string="Origin');

Avatar
Verwerfen
Autor

so in stock_move I made a field like this ? I will try that later.

Autor

I have made it with overriding 5 methods from the original stock modul. I don't see an other way to manage that

will you please share some more information , i did not get this ,

I have made it with overriding 5 methods from the original stock modul. ?

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juli 17
3793
2
Mai 25
5037
2
Mai 23
2503
0
Jan. 23
1555
1
Aug. 21
4265