I'm trying to port form odoo 13 to 16. I have two fields: A, B
In my form view, A has attribute: "attrs ({'readonly': [('report_done', '=', True)]})"
And B is restricted to groups="account.group_account_manager"
When I install the module, it keeps saying this:
Error while validating view near:
Field 'B' used in attrs ({'readonly': [('B', '=', True)]}) is restricted to the group(s) account.group_account_manager.
Is there something wrong in Odoo16?
Or am I missing something else?
Don't have enough karma to upvote the answer. The solution in my case was to add the field set as invisible (it already was on the form but was only accesible to the specific user group).