[MIG] account_chart_update: Migration to 10.0

This commit is contained in:
Sylvain Van Hoof
2017-03-14 11:54:08 +01:00
committed by Luis J. Salvatierra
parent fa34bca71b
commit 7093779041
3 changed files with 9 additions and 5 deletions

View File

@@ -400,10 +400,9 @@ class WizardUpdateChartsAccounts(models.TransientModel):
def diff_fields(self, template, real):
"""Get fields that are different in template and real records.
:param openerp.models.Model template:
:param odoo.models.Model template:
Template record.
:param openerp.models.Model real:
:param odoo.models.Model real:
Real record.
:return dict:
@@ -561,6 +560,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
"""Load fiscal position templates to create/update."""
wiz_fp = self.env['wizard.update.charts.accounts.fiscal.position']
self.fiscal_position_ids.unlink()
# Search for new / updated fiscal positions
templates = self.env['account.fiscal.position.template'].search(
[('chart_template_id', 'in', self.chart_template_ids.ids)])