From 91cc0b5494bfa362ad6e67b11948950da4a5832f Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 13 Aug 2013 17:38:29 +0200 Subject: [PATCH] [FIX] l10n_be: trying to cheat runbot into going green, still a data problem with l10n_be_hr_payroll_account bzr revid: mat@openerp.com-20130813153829-t3ssexue8yreeeld --- addons/l10n_be/__openerp__.py | 3 +++ addons/l10n_be/l10n_be_wizard.yml | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 addons/l10n_be/l10n_be_wizard.yml 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