[FIX] account_chart_update:

* Process price_include field
* Detect change in price_include field
This commit is contained in:
Stéphane Bidoul
2016-03-21 10:47:34 +01:00
committed by Reyes4711
parent 04c00c11dd
commit 8db0ee95b5

View File

@@ -601,6 +601,8 @@ class WizardUpdateChartsAccounts(models.TransientModel):
notes += _("The include base amount field is different.\n")
if tax.type_tax_use != tax_template.type_tax_use:
notes += _("The type tax use field is different.\n")
if tax.price_include != tax_template.price_include:
notes += _("The Tax Included in Price field is different.\n")
# compare tax code fields
if tax.base_code_id != self.map_tax_code_template(
tax_template.base_code_id, mapping_tax_codes):
@@ -922,7 +924,8 @@ class WizardUpdateChartsAccounts(models.TransientModel):
'include_base_amount': tax_template.include_base_amount,
'description': tax_template.description,
'company_id': self.company_id.id,
'type_tax_use': tax_template.type_tax_use
'type_tax_use': tax_template.type_tax_use,
'price_include': tax_template.price_include,
}
@api.multi