Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6485 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
zář 20
3344
0
úno 19
3891
0
dub 16
3543
3
bře 16
14491
1
zář 15
5458