我正在尝试将模块从 Odoo 10 迁移到 12,但它向我显示此错误,我不明白为什么:
\n\n\n\n\n属性中使用的字段“状态”必须出现在视图中,但缺失
\n
你能帮我解决这个问题吗:
\n\nField \'state\' used in attributes must be present in view but is missing:\n - \'state\' in attrs="{\'invisible\': [\'|\',\'|\',(\'journal_entry_ids\', \'!=\', []), (\'state\', \'=\', \'confirm\'),(\'type\', \'!=\', \'bank\')]}"\n - \'state\' in attrs="{\'invisible\': [\'|\',\'|\',(\'journal_entry_ids\', \'=\', []), (\'state\', \'=\', \'confirm\'),(\'type\', \'!=\', \'bank\')]}"\n\nError context:\nView `account.bank.statement.form.reconciliation`\n[view_id: 1684, xml_id: n/a, model: account.bank.statement, parent_id: 462]\nNone while parsing /home/PycharmProjects/Odoo12/bank_reconciliation/views/account_view.xml:4, near\n<record id="view_bank_statement_form_reconciliation" model="ir.ui.view">\n <field name="name">account.bank.statement.form.reconciliation</field>\n <field name="model">account.bank.statement</field>\n <field name="inherit_id" ref="account.view_bank_statement_form"/>\n <field name="arch" type="xml">\n <data>\n <field name="date" position="after">\n <field name="type" …
Run Code Online (Sandbox Code Playgroud)