Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
6724 Vues

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

Avatar
Ignorer
Meilleure réponse

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!

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
mars 25
1146
0
avr. 17
5546
3
mai 16
8329
3
juin 20
21357
2
sept. 18
3944