Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
6405 Näkymät

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

Thanks

Avatar
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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

Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 17
3787
2
toukok. 25
4999
2
toukok. 23
2499
0
tammik. 23
1548
1
elok. 21
4250