[FIX] l10n_be: as l10n_multilang is an optional dependency for dutch translation of the account.chart, the field spoken_languages must be set conditionnaly

bzr revid: chs@openerp.com-20131112191033-hour5mlzka3w6ybp
This commit is contained in:
Christophe Simonis 2013-11-12 20:10:33 +01:00
parent 6b9822626b
commit 57a4125a53
3 changed files with 5 additions and 1 deletions

View File

@ -65,6 +65,7 @@ Wizards provided by this module:
'account_pcmn_belgium.xml',
'account_tax_code_template.xml',
'account_chart_template.xml',
'account_chart_template.yml',
'account_tax_template.xml',
'wizard/l10n_be_account_vat_declaration_view.xml',
'wizard/l10n_be_vat_intra_view.xml',

View File

@ -12,7 +12,6 @@
<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>
<record id="l10nbe_chart_template_value" model="ir.values">
<field name="name">Belgian PCMN</field>

View File

@ -0,0 +1,4 @@
-
!python {model: account.chart.template}: |
if 'spoken_languages' in self._all_columns:
self.write(cr, uid, [ref('l10nbe_chart_template')], {'spoken_languages': 'nl_BE'})