Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
6494 Weergaven

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

Avatar
Annuleer
Beste antwoord

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.


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 20
3350
0
feb. 19
3895
0
apr. 16
3549
3
mrt. 16
14499
1
sep. 15
5466