跳至內容
選單
此問題已被標幟
1 回覆
6446 瀏覽次數

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

Thanks

頭像
捨棄
最佳答案

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

頭像
捨棄
作者

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

作者

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

相關帖文 回覆 瀏覽次數 活動
1
7月 17
3795
2
5月 25
5055
2
5月 23
2506
0
1月 23
1563
1
8月 21
4276