The error is strange as the field (is_hon) is available in the model (account.analytic.account), and I'm also able to see the field under Setting>Technical>Database Structure>Fields for that object.
Important & strange: The view doesn't have the field is_hon, actually the field is added to some other inherited view.
Please let me know if any idea on this.
Thanks!
Please find the error log below,
File "/workspace/parts/odoo/odoo/models.py", line 1417, in fields_view_get xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id) File "/workspace/parts/odoo/odoo/addons/base/ir/ir_ui_view.py", line 919, in postprocess_and_fields self.raise_view_error(message, view_id) File "/workspace/parts/odoo/odoo/addons/base/ir/ir_ui_view.py", line 477, in raise_view_error raise ValueError(message) ValueError: Field `is_hon` does not exist Error context: View `account.analytic.account.list` [view_id: 369, xml_id: analytic.view_account_analytic_account_list, model: account.analytic.account, parent_id: n/a]
Hi @Niyas,
Indeed, whatever you told is true. Thanks!
Actually I've already found to which view the field has been added.
There are some inherited views and one base view for this object, this field is added in one of the inherited view but the error message shows the base view (different view). So this error looks bit strange as it shows different view in the error log. Also the field is available in model in python file.
As usual, the error pops up only in server and it works fine in my local machine.
Thanks once again!