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

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

 

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
sty 24
23249
Attrs attribute Rozwiązane
2
sty 24
2551
0
sie 23
2352
2
sie 23
2569
1
lip 23
2726