Hii, I have a custom module that is an extension to Odoo Purchase App. I added a custom field by inheriting account.invoice model. I inherited its xml view i.e 'account.invoice_supplier_form' and showing the custom field in the view by xpath expression.
Now when I am installing this custom module from Apps, getting this strange error...
Field 'has_outstanding' used in attributes must be present in view but is missing: - 'has_outstanding' in attrs="{'invisible': [('has_outstanding','=',False)]}" Error context: View `purchase.account.invoice.supplier.form_inherit` [view_id: 2277, xml_id: n/a, model: account.invoice, parent_id: 1050] None" while parsing /odoo/odoo-server/odoo/custom/purchase_shipment/views/aaa_invoice_supplier_form.xml:3, near <record model="ir.ui.view" id="aaa_invoice_supplier_form_inherit"> <field name="name">purchase.account.invoice.supplier.form_inherit</field> <field name="model">account.invoice</field> <field name="inherit_id" ref="account.invoice_supplier_form"/> <field name="arch" type="xml"> <xpath expr="//field[@name='reference']" position="after"> <field name="custom_field_id"/> </xpath> </field> </record>