[MERGE] [ADD] l10n_be: l10n_be inherits from l10n_multilang, remove yml for automatic account assignment and replace it by the more common wizard in open state

bzr revid: mat@openerp.com-20130813122835-bvue248y36zkottt
This commit is contained in:
Martin Trigaux 2013-08-13 14:28:35 +02:00
commit 8806b2406f
4 changed files with 10 additions and 15 deletions

View File

@ -58,6 +58,7 @@ Wizards provided by this module:
'base_iban',
'account_chart',
'l10n_be_coda',
'l10n_multilang',
],
'data': [
'account_financial_report.xml',
@ -68,11 +69,11 @@ Wizards provided by this module:
'wizard/l10n_be_account_vat_declaration_view.xml',
'wizard/l10n_be_vat_intra_view.xml',
'wizard/l10n_be_partner_vat_listing.xml',
'wizard/account_wizard.xml',
'l10n_be_sequence.xml',
'fiscal_templates.xml',
'account_fiscal_position_tax_template.xml',
'security/ir.model.access.csv',
'l10n_be_wizard.yml'
],
'demo': [],
'installable': True,

View File

@ -12,6 +12,7 @@
<field name="property_account_payable" ref="a_pay"/>
<field name="property_account_expense_categ" ref="a_expense"/>
<field name="property_account_income_categ" ref="a_sale"/>
<field name="spoken_languages" eval="'nl_BE'"/>
</record>

View File

@ -1,14 +0,0 @@
-
!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'})

View File

@ -0,0 +1,7 @@
<openerp>
<data noupdate="1">
<record id="account.action_wizard_multi_chart_todo" model="ir.actions.todo">
<field name="state">open</field>
</record>
</data>
</openerp>