コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6314 ビュー

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
3573