Skip to content

Commit

Permalink
[ADD] l10n_eu_oss_oca: added Oss Country in tax form
Browse files Browse the repository at this point in the history
  • Loading branch information
Borruso committed Sep 18, 2024
1 parent 8032871 commit 28d7a5e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_eu_oss_oca/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"wizard/l10n_eu_oss_wizard.xml",
"views/res_config_settings.xml",
"views/account_fiscal_position_views.xml",
"views/account_tax_view.xml",
],
}
45 changes: 45 additions & 0 deletions l10n_eu_oss_oca/views/account_tax_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="account_tax_form_l10n_eu_oss_oca_view" model="ir.ui.view">
<field name="name">account.tax.form.l10n.eu.oss.oca.view</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form" />
<field name="arch" type="xml">
<xpath
expr="//page[@name='advanced_options']//field[@name='country_id']"
position="after"
>
<field name="oss_country_id" />
</xpath>
</field>
</record>

<record id="account_tax_tree_l10n_eu_oss_oca_view" model="ir.ui.view">
<field name="name">account.tax.tree.l10n.eu.oss.oca.view</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_tree" />
<field name="arch" type="xml">
<xpath expr="//tree/field[@name='country_id']" position="after">
<field name="oss_country_id" optional="hide" />
</xpath>
</field>
</record>

<record id="account_tax_search_l10n_eu_oss_oca_view" model="ir.ui.view">
<field name="name">account.tax.search.l10n.eu.oss.oca.view</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_account_tax_search" />
<field name="arch" type="xml">
<xpath expr="//group/filter[@name='company']" position="after">
<filter
string="Oss Country"
name="oss_country"
domain="[]"
context="{'group_by':'oss_country_id'}"
/>
</xpath>
</field>
</record>

</odoo>

0 comments on commit 28d7a5e

Please sign in to comment.