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

Hi,

Anyone suggest me how to set domain for o2m in (.xml) view

Ảnh đại diện
Huỷ bỏ

Hello Prabhu

Try to do it within .py ,it will work always, but is there any specific purpose to apply in .xml ?

Thanks !

Tác giả

Yes, Mr. Dipak Shah. I have two forms of the parent class, when I add the domain in python it will apply to all forms. So, I need a domain for one form.

Okay . What if you are manipulate the domain using def fields_view_get method where you can check the specific form and and alter the domain as you want. :)