89 lines
4.1 KiB
XML
89 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<record id="uae_account_invoice_form_inherit" model="ir.ui.view">
|
|
<field name="name">uae.account.invoice.form.inherit</field>
|
|
<field name="model">account.invoice</field>
|
|
<field name="inherit_id" ref="account.invoice_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='partner_id']" position="after">
|
|
<field name="vat_config_type" domain="[('journal_id.type', '=', 'sale')]"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='fiscal_position_id']" position="replace"/>
|
|
<xpath expr="//field[@name='date_due']" position="after">
|
|
<field name="fiscal_position_id" options="{'no_create': True}" placeholder="Auto-detect"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="uae_account_invoice_tree_inherit" model="ir.ui.view">
|
|
<field name="name">uae.account.invoice.tree.inherit</field>
|
|
<field name="model">account.invoice</field>
|
|
<field name="inherit_id" ref="account.invoice_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='number']" position="after">
|
|
<field name="vat_config_type"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_reverse_invoice_tax_tree" model="ir.ui.view">
|
|
<field name="name">reverse.account.invoice.tax.tree</field>
|
|
<field name="model">reverse.account.invoice.tax</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Reverse Invoice Taxes">
|
|
<field name="name"/>
|
|
<field name="account_id" groups="account.group_account_user"/>
|
|
<field name="base"/>
|
|
<field name="amount_total"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="uae_account_invoice_supplier_form_inherit" model="ir.ui.view">
|
|
<field name="name">uae.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='partner_id']" position="after">
|
|
<field name="vat_config_type" domain="[('journal_id.type', '=', 'purchase')]"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='fiscal_position_id']" position="replace"/>
|
|
<xpath expr="//field[@name='date_due']" position="after">
|
|
<field name="fiscal_position_id" options="{'no_create': True}" placeholder="Auto-detect"/>
|
|
<field name="reverse_charge" attrs="{'invisible': [('type', 'in', ['out_invoice', 'out_refund'])]}"/>
|
|
</xpath>
|
|
<xpath expr="//page[@name='other_info']" position="after">
|
|
<page string="Reverse Charge" name="reverse_charge_info" attrs="{'invisible': [('reverse_charge', '=', False)]}">
|
|
<field name="reverse_tax_line_ids" nolabel="1"/>
|
|
</page>
|
|
</xpath>
|
|
<xpath expr="//field/tree/field[@name='invoice_line_tax_ids']" position="after">
|
|
<field name="reverse_invoice_line_tax_ids" widget="many2many_tags" invisible="1"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="uae_account_invoice_supplier_tree_inherit" model="ir.ui.view">
|
|
<field name="name">uae.account.invoice.supplier.tree.inherit</field>
|
|
<field name="model">account.invoice</field>
|
|
<field name="inherit_id" ref="account.invoice_supplier_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='number']" position="after">
|
|
<field name="vat_config_type"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="uae_account_tax_form_inherit" model="ir.ui.view">
|
|
<field name="name">uae.account.tax.form.inherit</field>
|
|
<field name="model">account.tax</field>
|
|
<field name="inherit_id" ref="account.view_tax_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='type_tax_use']" position="after">
|
|
<field name="tax_type"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</flectra>
|