[IMP] no config wizard, launched automatically for l10n_be
[FIX] no need to translate YML tests -> warning removed bzr revid: fp@tinyerp.com-20111123150221-ii87xb09ymq82mmb
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="config_call_account_template" model="ir.actions.todo">
|
||||
<field name="action_id" ref="account.action_wizard_multi_chart"/>
|
||||
<field name="category_id" ref="account.category_accounting_configuration"/>
|
||||
<field name="type">automatic</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -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'
|
||||
})
|
||||
Reference in New Issue
Block a user