We are having the following error when trying to upgrade the product module or install a new module. How to resolve this issue? The database has live data.
Traceback (most recent call last): File "/odoo/odoo-server/odoo/tools/convert.py", line 713, in parse self._tag_root(de) File "/odoo/odoo-server/odoo/tools/convert.py", line 675, in _tag_root f(rec) File "/odoo/odoo-server/odoo/tools/convert.py", line 675, in _tag_root f(rec) File "/odoo/odoo-server/odoo/tools/convert.py", line 578, in _tag_record record = model._load_records([data], self.mode == 'update') File "/odoo/odoo-server/odoo/models.py", line 4040, in _load_records data['record']._load_records_write(data['values']) File "/odoo/odoo-server/odoo/models.py", line 3978, in _load_records_write self.write(values) File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 490, in write return super(View, self).write(self._compute_defaults(vals)) File "/odoo/odoo-server/odoo/models.py", line 3556, in write fields[0].determine_inverse(real_recs) File "/odoo/odoo-server/odoo/fields.py", line 1114, in determine_inverse getattr(records, self.inverse)() File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch view.write(data) File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 490, in write return super(View, self).write(self._compute_defaults(vals)) File "/odoo/odoo-server/odoo/models.py", line 3551, in write real_recs._validate_fields(set(vals) - set(inverse_fields)) File "/odoo/odoo-server/odoo/models.py", line 1167, in _validate_fields check(self) File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 385, in _check_xml view_def = view.read_combined(['arch']) File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 711, in read_combined parent_view = root.inherit_id.read_combined(fields=fields) File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 699, in read_combined view_arch = etree.fromstring(view_data['arch'].encode('utf-8')) AttributeError: 'bool' object has no attribute 'encode'