Ir al contenido
Menú
Se marcó esta pregunta

In detail: 
1.In my delivery form I have one custom device column that is boolean field, which I added through the studio. Image below.

2. Next I have another custom field in the another module that is (stock.production.lot). Image below:


Now what I need is, when I check the checkbox(Custom Device) in the delivery form, then automatically in the second image checkbox should get checked. i.e on inventory->products->Lots and serials.

I am using version 14 enterprise edition. I have tried my best to explain. Kindly help.


Many thanks.  

Avatar
Descartar
Mejor respuesta

You have created two different fields in different models that don't have any relation between them.

If you want to see some field in another model, you can create the same type of field and use related, that way the field will always have the same value as the original field.

custom_device = fields.Boolean(related='...', store=True)

https://www.odoo.com/documentation/14.0/developer/reference/addons/orm.html#related-fields

I don't think you can do this in studio.


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
abr 25
3610
1
ago 24
1062
2
feb 23
1983
0
ago 21
2116
0
may 21
2563