summaryrefslogtreecommitdiff
path: root/addons/account/views
diff options
context:
space:
mode:
authoroco-odoo <oco@odoo.com>2020-08-03 09:05:02 +0000
committeroco-odoo <oco@odoo.com>2020-08-14 07:59:16 +0000
commit07fbfbb5fb1a19821fe095e26db6fe48ebdf7aaf (patch)
tree6c8c0da98955ed836b0bb1fc9893e7f08e600c5c /addons/account/views
parent50abd90b38a97d3c401e7849004694aa87bcb3cc (diff)
[IMP] account: remove account_fiscal_country_* config parameter
This config parameter was used in order to choose another country than the company's to select the tax report. It is now replaced by a new account_tax_fiscal_country_id field in account_reports. closes odoo/odoo#55308 Related: odoo/enterprise#12156 Related: odoo/upgrade#1624 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/account/views')
-rw-r--r--addons/account/views/account_move_views.xml4
-rw-r--r--addons/account/views/account_tax_views.xml6
2 files changed, 5 insertions, 5 deletions
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml
index aed046689f0..2a70e60d9a3 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -953,8 +953,8 @@
<field name="credit"
sum="Total Credit"
attrs="{'invisible': [('display_type', 'in', ('line_section', 'line_note'))]}"/>
- <field name="country_id" invisible="1"/>
- <field name="tax_tag_ids" widget="many2many_tags" string="Tax Grids" optional="show" domain="[('country_id', '=', country_id), ('applicability', '=', 'taxes')]"/>
+ <field name="tax_fiscal_country_id" invisible="1"/>
+ <field name="tax_tag_ids" widget="many2many_tags" string="Tax Grids" optional="show" domain="[('country_id', '=', tax_fiscal_country_id), ('applicability', '=', 'taxes')]"/>
<!-- Buttons -->
<button name="action_automatic_entry"
diff --git a/addons/account/views/account_tax_views.xml b/addons/account/views/account_tax_views.xml
index 925c555c18f..26fcda464da 100644
--- a/addons/account/views/account_tax_views.xml
+++ b/addons/account/views/account_tax_views.xml
@@ -27,9 +27,9 @@
<field name="factor_percent" attrs="{'invisible': [('repartition_type', '=', 'base')]}"/>
<field name="repartition_type"/>
<field name="account_id" attrs="{'invisible': [('repartition_type', '=', 'base')]}" options="{'no_create': True}"/>
- <field name="tag_ids" widget="many2many_tags" options="{'no_create': True}" domain="[('applicability', '=', 'taxes'), ('country_id', '=', country_id)]"/>
+ <field name="tag_ids" widget="many2many_tags" options="{'no_create': True}" domain="[('applicability', '=', 'taxes'), ('country_id', '=', tax_fiscal_country_id)]"/>
<field name="use_in_tax_closing" optional="hidden" />
- <field name="country_id" invisible="1"/>
+ <field name="tax_fiscal_country_id" invisible="1"/>
<field name="company_id" invisible="1"/>
</tree>
</field>
@@ -133,7 +133,7 @@
<notebook>
<page string="Definition" name="definition">
<div attrs="{'invisible': [('amount_type', '=', 'group')]}">
- <field name="country_id" invisible="1"/>
+ <field name="tax_fiscal_country_id" invisible="1"/>
<group string="Repartition for Invoices">
<field name="invoice_repartition_line_ids" nolabel="1" context="{'default_company_id': company_id}"/>
</group>