Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] l10n_eu_oss_oca: added Oss Country in tax form #437

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading