2
0

[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 Luis J. Salvatierra
parent b09acad132
commit 4c5b816db3

View File

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