diff --git a/addons/account/test/account_supplier_invoice.yml b/addons/account/test/account_supplier_invoice.yml index c67979226cc..8dcf77f927e 100644 --- a/addons/account/test/account_supplier_invoice.yml +++ b/addons/account/test/account_supplier_invoice.yml @@ -82,10 +82,10 @@ 'active_model': 'ir.ui.menu', 'journal_type': 'purchase', 'active_ids': [ref('menu_action_invoice_tree2')], 'type': 'in_invoice', 'active_id': ref('menu_action_invoice_tree2')}) except Exception, e: - assert e, _('Warning message has not been raised') + assert e, 'Warning message has not been raised' - I verify that 'Period Sum' and 'Year sum' of account tax codes gets bind with the values - !python {model: account.tax.code}: | tax_code = self.browse(cr, uid, ref('tax_case')) - assert(tax_code.sum_period == 100.0 and tax_code.sum == 100.0), _("'Period Sum' and 'Year sum' has not been binded with the correct values") + assert(tax_code.sum_period == 100.0 and tax_code.sum == 100.0), "'Period Sum' and 'Year sum' has not been binded with the correct values" diff --git a/addons/l10n_be/__openerp__.py b/addons/l10n_be/__openerp__.py index 26c9837a8bf..d4300186660 100644 --- a/addons/l10n_be/__openerp__.py +++ b/addons/l10n_be/__openerp__.py @@ -42,27 +42,27 @@ Wizards provided by this module: """, 'author': 'OpenERP SA', 'depends': [ - 'account', - 'base_vat', - 'base_iban', - 'account_chart', - 'account_coda', - ], + 'account', + 'base_vat', + 'base_iban', + 'account_chart', + 'account_coda', + ], 'init_xml': [], 'update_xml': [ - 'account_pcmn_belgium.xml', - 'account_tax_code_template.xml', - 'account_chart_template.xml', - 'account_tax_template.xml', - 'l10n_be_wizard.xml', - 'wizard/l10n_be_account_vat_declaration_view.xml', - 'wizard/l10n_be_vat_intra_view.xml', - 'wizard/l10n_be_partner_vat_listing.xml', - 'l10n_be_sequence.xml', - 'fiscal_templates.xml', - 'account_fiscal_position_tax_template.xml', - 'security/ir.model.access.csv' - ], + 'account_pcmn_belgium.xml', + 'account_tax_code_template.xml', + 'account_chart_template.xml', + 'account_tax_template.xml', + 'wizard/l10n_be_account_vat_declaration_view.xml', + 'wizard/l10n_be_vat_intra_view.xml', + 'wizard/l10n_be_partner_vat_listing.xml', + 'l10n_be_sequence.xml', + 'fiscal_templates.xml', + 'account_fiscal_position_tax_template.xml', + 'security/ir.model.access.csv', + 'l10n_be_wizard.yml' + ], 'demo_xml': [], 'installable': True, 'certificate': '0031977724637', diff --git a/addons/l10n_be/l10n_be_wizard.xml b/addons/l10n_be/l10n_be_wizard.xml deleted file mode 100644 index 194e2881d1b..00000000000 --- a/addons/l10n_be/l10n_be_wizard.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - automatic - - - - diff --git a/addons/l10n_be/l10n_be_wizard.yml b/addons/l10n_be/l10n_be_wizard.yml new file mode 100644 index 00000000000..a51d1d55244 --- /dev/null +++ b/addons/l10n_be/l10n_be_wizard.yml @@ -0,0 +1,16 @@ +- + !record {model: ir.actions.todo, id: config_call_account_template}: + action_id: account.action_wizard_multi_chart + category_id: account.category_accounting_configuration + type: automatic +- + !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, { + 'chart_template_id': ref('l10n_be.l10nbe_chart_template') + }) + wiz.execute(cr, uid, [wiz_id]) + self.write(cr, uid, [ref('l10n_be.config_call_account_template')], { + 'state': 'done' + })