Hello Everyone
I am trying to hide a column in account move line depending on a condition, but rather than being invisible it only makes it readonly
here is my XML code
i also tried using column_invisible but it gives me this error
Error: for modifier "column_invisible": Cannot read properties of undefined (reading 'split')
this is my py code for the field calculation
fixed_assets_user_type_name = fields.Boolean(string='User Type Name', compute='_compute_user_type_name', store=True, default=False)
@api.onchange('account_id') def _compute_user_type_name(self): for record in self: if record.account_id.user_type_id.name == 'Fixed Assets': record.fixed_assets_user_type_name = True