diff --git a/addons/l10n_be/__openerp__.py b/addons/l10n_be/__openerp__.py index 18943a2bee3..3d1dac0ff9f 100644 --- a/addons/l10n_be/__openerp__.py +++ b/addons/l10n_be/__openerp__.py @@ -75,6 +75,9 @@ Wizards provided by this module: 'account_fiscal_position_tax_template.xml', 'security/ir.model.access.csv', ], + 'test': [ + 'l10n_be_wizard.yml', + ], 'demo': [], 'installable': True, 'images': ['images/1_config_chart_l10n_be.jpeg','images/2_l10n_be_chart.jpeg'], diff --git a/addons/l10n_be/l10n_be_wizard.yml b/addons/l10n_be/l10n_be_wizard.yml new file mode 100644 index 00000000000..1f1799ab443 --- /dev/null +++ b/addons/l10n_be/l10n_be_wizard.yml @@ -0,0 +1,14 @@ +- + !python {model: ir.actions.todo}: | + install_todo = self.browse(cr, uid, ref('account.action_wizard_multi_chart_todo')) + if install_todo.state == 'open': + wiz = self.pool.get('wizard.multi.charts.accounts') + values = { + 'chart_template_id': ref('l10n_be.l10nbe_chart_template') + } + values.update( + wiz.onchange_chart_template_id(cr, uid, False, ref('l10n_be.l10nbe_chart_template')).get('value', {}) + ) + wiz_id = wiz.create(cr, uid, values) + wiz.execute(cr, uid, [wiz_id]) + install_todo.write({'state':'done'}) \ No newline at end of file