[FIX] l10n_be: amounts in xml file MUST have 2 digits after the comma (43.5 isn't...
[odoo/odoo.git] / addons / l10n_be / l10n_be_wizard.yml
1 -
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
5     type: automatic
6 -
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')
11         values = {
12             'chart_template_id': ref('l10n_be.l10nbe_chart_template')
13         }
14         values.update(
15             wiz.onchange_chart_template_id(cr, uid, False, ref('l10n_be.l10nbe_chart_template')).get('value', {})
16         )
17         wiz_id = wiz.create(cr, uid, values)
18         wiz.execute(cr, uid, [wiz_id])
19         install_todo.write({'state':'done'})