Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6368 Widoki

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

Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

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');

Awatar
Odrzuć
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. ?

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 17
3743
2
maj 25
4917
2
maj 23
2471
0
sty 23
1523
1
sie 21
4201