Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6501 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 20
3365
0
lut 19
3908
0
kwi 16
3558
3
mar 16
14515
1
wrz 15
5484