mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
49 lines
2.2 KiB
XML
49 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="invoice_form" model="ir.ui.view">
|
|
<field name="name">intrastat.invoice.form</field>
|
|
<field name="model">account.invoice</field>
|
|
<field name="inherit_id" ref="account.invoice_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[@name='other_info']//field[@name='name']" position="after">
|
|
<field name="intrastat_transaction_id"/>
|
|
<field name="intrastat" invisible="1"/>
|
|
<field name="intrastat_transport_id"
|
|
attrs="{'invisible': [('intrastat', '!=', 'extended')]}"
|
|
widget="selection"/>
|
|
<field name="src_dest_country_id" string="Destination Country"/>
|
|
<field name="src_dest_region_id" string="Origin Region" invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='invoice_line_ids']//field[@name='account_id']" position="after">
|
|
<field name="hs_code_id" invisible="1"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="invoice_supplier_form" model="ir.ui.view">
|
|
<field name="name">intrastat.invoice.supplier.form</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='payment_term_id']" position="after">
|
|
<field name="incoterms_id"
|
|
attrs="{'invisible': [('intrastat', '!=', 'extended')]}"/>
|
|
</xpath>
|
|
<xpath expr="//page/group/group/field[@name='company_id']" position="after">
|
|
<field name="intrastat_transaction_id"/>
|
|
<field name="intrastat" invisible="1"/>
|
|
<field name="intrastat_transport_id"
|
|
attrs="{'invisible': [('intrastat', '!=', 'extended')]}"
|
|
widget="selection"/>
|
|
<field name="src_dest_country_id" string="Origin Country"/>
|
|
<field name="src_dest_region_id" string="Destination Region" invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='invoice_line_ids']//field[@name='account_id']" position="after">
|
|
<field name="hs_code_id" invisible="1"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|