Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6474 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 20
3336
0
thg 2 19
3889
0
thg 4 16
3539
3
thg 3 16
14486
1
thg 9 15
5455