Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6465 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Sep 20
3333
0
Feb 19
3887
0
Apr 16
3534
3
Mar 16
14476
1
Sep 15
5454