mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_chart_update: Migration to 10.0
This commit is contained in:
committed by
Luis J. Salvatierra
parent
fa34bca71b
commit
7093779041
@@ -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)])
|
||||
|
||||
Reference in New Issue
Block a user