Skip to content

Commit

Permalink
FIX l10n_it_reverse_charge to make it work with intrastat (OCA#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
eLBati authored and SimoRubi committed Aug 7, 2019
1 parent e78f5c6 commit fa10b20
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions l10n_it_reverse_charge/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<xpath expr="//form/sheet/notebook/page[2]/group"
position="inside">
<group string="Self Invoicing">
<field name="rc_self_invoice_id" readonly="True"
context="{'form_view_ref': 'account.invoice_form'}"/>
<field name="rc_self_purchase_invoice_id" readonly="True"
context="{'form_view_ref': 'account.supplier_invoice_form'}"/>
</group>
</xpath>
<xpath expr="//form/sheet/notebook/page[1]/field[@name='invoice_line_ids']/tree/field[@name='currency_id']"
<field name="move_id"
position="after">
<field name="rc_self_invoice_id" readonly="True"
context="{'form_view_ref': 'account.invoice_form'}"/>
<field name="rc_self_purchase_invoice_id" readonly="True"
context="{'form_view_ref': 'account.supplier_invoice_form'}"/>
</field>
<field name="price_subtotal"
position="after">
<field name="rc"/>
</xpath>
</field>
</field>
</record>

Expand All @@ -45,13 +43,11 @@
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="//form/sheet/notebook/page[2]/group"
position="inside">
<group string="Self Invoicing">
<field name="rc_purchase_invoice_id" readonly="True"
context="{'form_view_ref': 'account.supplier_invoice_form'}"/>
</group>
</xpath>
<field name="move_id"
position="after">
<field name="rc_purchase_invoice_id" readonly="True"
context="{'form_view_ref': 'account.supplier_invoice_form'}"/>
</field>
</field>
</record>
</odoo>

0 comments on commit fa10b20

Please sign in to comment.