Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6486 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 20
3344
0
feb 19
3891
0
apr 16
3543
3
mar 16
14492
1
set 15
5459