mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
account_chart_update: Fix number of updates and insertions in log
This commit is contained in:
@@ -290,7 +290,13 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
|||||||
@api.multi
|
@api.multi
|
||||||
def action_init(self):
|
def action_init(self):
|
||||||
"""Initial action that sets the initial state."""
|
"""Initial action that sets the initial state."""
|
||||||
self.state = 'init'
|
self.write({
|
||||||
|
'state': 'init',
|
||||||
|
'tax_ids': [(2, r.id, False) for r in self.tax_ids],
|
||||||
|
'account_ids': [(2, r.id, False) for r in self.account_ids],
|
||||||
|
'fiscal_position_ids': [(2, r.id, False) for r in
|
||||||
|
self.fiscal_position_ids],
|
||||||
|
})
|
||||||
return self._reopen()
|
return self._reopen()
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
|||||||
Reference in New Issue
Block a user