Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6382 Lượt xem

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

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 17
3752
2
thg 5 25
4939
2
thg 5 23
2477
0
thg 1 23
1534
1
thg 8 21
4222