Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2529 Представления

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.  

Аватар
Отменить
Лучший ответ

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.


Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
апр. 25
3608
1
авг. 24
1062
2
февр. 23
1983
0
авг. 21
2111
0
мая 21
2550