Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6390 Visualizzazioni

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

Thanks

Avatar
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Autore

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. ?

Post correlati Risposte Visualizzazioni Attività
1
lug 17
3760
2
mag 25
4947
2
mag 23
2482
0
gen 23
1539
1
ago 21
4237