Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.  

Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 25
3633
1
sie 24
1064
2
lut 23
1996
0
sie 21
2128
0
maj 21
2584