2 !record {model: ir.actions.todo, id: config_call_account_template}:
3 action_id: account.action_wizard_multi_chart
4 category_id: account.category_accounting_configuration
7 !python {model: ir.actions.todo}: |
8 install_todo = self.browse(cr, uid, ref('l10n_be.config_call_account_template'))
9 if install_todo.state == 'open':
10 wiz = self.pool.get('wizard.multi.charts.accounts')
12 'chart_template_id': ref('l10n_be.l10nbe_chart_template')
15 wiz.onchange_chart_template_id(cr, uid, False, ref('l10n_be.l10nbe_chart_template')).get('value', {})
17 wiz_id = wiz.create(cr, uid, values)
18 wiz.execute(cr, uid, [wiz_id])
19 install_todo.write({'state':'done'})