[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
This commit is contained in:
Martin Trigaux 2013-08-13 17:38:29 +02:00
parent 5800fa9a53
commit 91cc0b5494
2 changed files with 17 additions and 0 deletions

View File

@ -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'],

View File

@ -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'})