diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2011-11-28 17:05:11 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2011-11-28 17:05:11 +0100 |
| commit | 26962cae9b0cfceec358ff94829f9ce9c757f052 (patch) | |
| tree | d9b48bf840c6a09b046ed46dfb2ae397adbc5f69 | |
| parent | a7425afa444f23d3116bfca29437a048d546db31 (diff) | |
[fix] generation of l10n_be chart of accounts
bzr revid: fp@tinyerp.com-20111128160511-b8k0d8pz8d2jgkov
| -rw-r--r-- | addons/l10n_be/l10n_be_wizard.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/l10n_be/l10n_be_wizard.yml b/addons/l10n_be/l10n_be_wizard.yml index a51d1d55244..0e9b04a6cf2 100644 --- a/addons/l10n_be/l10n_be_wizard.yml +++ b/addons/l10n_be/l10n_be_wizard.yml @@ -7,9 +7,13 @@ !python {model: ir.actions.todo}: | if self.browse(cr, uid, ref('l10n_be.config_call_account_template')).state=='open': wiz = self.pool.get('wizard.multi.charts.accounts') - wiz_id = wiz.create(cr, uid, { + 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('values', {}) + ) + wiz_id = wiz.create(cr, uid, values) wiz.execute(cr, uid, [wiz_id]) self.write(cr, uid, [ref('l10n_be.config_call_account_template')], { 'state': 'done' |
