Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Apr 25
3633
1
Agu 24
1064
2
Feb 23
1996
0
Agu 21
2128
0
Mei 21
2584