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

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
3328
0
февр. 19
3884
0
апр. 16
3525
3
мар. 16
14472
1
сент. 15
5450