Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6309 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 25
810
0
abr 17
5027
3
may 16
7731
3
jun 20
20499
2
sept 18
3568