Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6321 Переглядів

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!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 25
820
0
квіт. 17
5028
3
трав. 16
7738
3
черв. 20
20506
2
вер. 18
3578