[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:
parent
6b9822626b
commit
57a4125a53
|
@ -65,6 +65,7 @@ Wizards provided by this module:
|
||||||
'account_pcmn_belgium.xml',
|
'account_pcmn_belgium.xml',
|
||||||
'account_tax_code_template.xml',
|
'account_tax_code_template.xml',
|
||||||
'account_chart_template.xml',
|
'account_chart_template.xml',
|
||||||
|
'account_chart_template.yml',
|
||||||
'account_tax_template.xml',
|
'account_tax_template.xml',
|
||||||
'wizard/l10n_be_account_vat_declaration_view.xml',
|
'wizard/l10n_be_account_vat_declaration_view.xml',
|
||||||
'wizard/l10n_be_vat_intra_view.xml',
|
'wizard/l10n_be_vat_intra_view.xml',
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
<field name="property_account_payable" ref="a_pay"/>
|
<field name="property_account_payable" ref="a_pay"/>
|
||||||
<field name="property_account_expense_categ" ref="a_expense"/>
|
<field name="property_account_expense_categ" ref="a_expense"/>
|
||||||
<field name="property_account_income_categ" ref="a_sale"/>
|
<field name="property_account_income_categ" ref="a_sale"/>
|
||||||
<field name="spoken_languages" eval="'nl_BE'"/>
|
|
||||||
</record>
|
</record>
|
||||||
<record id="l10nbe_chart_template_value" model="ir.values">
|
<record id="l10nbe_chart_template_value" model="ir.values">
|
||||||
<field name="name">Belgian PCMN</field>
|
<field name="name">Belgian PCMN</field>
|
||||||
|
|
|
@ -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'})
|
Loading…
Reference in New Issue