Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6463 Переглядів

Hi everyone,

I have defined a many2many field in my customized form.When i select many2many field value need to throw values to one2many field.Is it possible to do? Please advise in this situation.Thanks in advance

Аватар
Відмінити
Найкраща відповідь

Yes, it is possible to manage this kind of situation.

you can get many2many ids in py onchange method and then like other fields you can set value of one2many fields also, just need to care about its format.


'sale_ids': [[0, False, {dictionary contains field value}]] 

I hope this is helpful.


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
вер. 20
3329
0
лют. 19
3884
0
квіт. 16
3525
3
бер. 16
14472
1
вер. 15
5450