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

In Delivery Orders I'm trying to display the loc_rack field next to each product name.

The Delivery Order has the Product_ID field, but how do I use that field and tell it "hey, give me the loc_rack field that is associated with that Product ID in a different module"?

頭像
捨棄
最佳答案

Have you made a custom module yet? That will need to be your first step if not.

What you will need to do is add a new field to Delivery Orders like so:

'del_loc_rack': fields.related('product_id', 'loc_rack', type='char', string="Rack Location")

Then add that to an .xml file that inherits the Delivery Order view, and place the field 'del_loc_rack'. Hope that helps!

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 25
811
0
4月 17
5027
3
5月 16
7733
3
6月 20
20500
2
9月 18
3572