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

Hello,

In my res.partner model i added two custom fields:

x_is_company_user: type boolean

x_company_user_id: type integer

I added x_company_user_id  to the view res.partner.form and i want it to be readonly if the field x_is_company_user=True

....

<field name="x_company_user_id" attrs="{'invisible': [('is_company','=', True)],'readonly':[('x_is_company_user','=',True)]}"/>

...

 

But i got the error:

Error: Unknown field x_is_company_user in domain [["x_is_company_user","=",true]]

Someone has an idea? Thanks

 

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 1 24
23274
Attrs attribute Đã xử lý
2
thg 1 24
2560
0
thg 8 23
2353
2
thg 8 23
2570
1
thg 7 23
2733