小编oma*_*mas的帖子

迁移模块从 10 到 12

我正在尝试将模块从 Odoo 10 迁移到 12,但它向我显示此错误,我不明白为什么:

\n\n
\n

属性中使用的字段“状态”必须出现在视图中,但缺失

\n
\n\n

你能帮我解决这个问题吗:

\n\n
Field \'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)

python xml odoo odoo-10 odoo-12

3
推荐指数
1
解决办法
830
查看次数

标签 统计

odoo ×1

odoo-10 ×1

odoo-12 ×1

python ×1

xml ×1