odoo/ext/custom-addons/dp_retail_invoice/views/account_views.xml

18 lines
602 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_invoice_form_view" model="ir.ui.view">
<field name="name">account_invoice_form_view</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_line_ids']/tree//field[@name='layout_category_id']"
position="attributes">
<attribute name="options">{'no_create': True}</attribute>
</xpath>
</field>
</record>
</odoo>