跳至内容
菜单
此问题已终结
1 回复
6308 查看

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
808
0
4月 17
5026
3
5月 16
7731
3
6月 20
20498
2
9月 18
3567