Skip to Content
Menu
This question has been flagged

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
Jun 24
2491
1
Aug 24
197
2
Feb 23
1190
0
Aug 21
1338
0
May 21
1478