[FIX] account, l10n_nl: code 9999 was already existing in l10n_nl, raising a unique constraint(code) upon the chart installation if the code_digits field set on the company is 4 (account code length = 4 digits). Fixes ticket 660636

This commit is contained in:
qdp-odoo
2016-01-05 16:16:16 +01:00
parent 97e87a42cd
commit 6c9a874635
+1 -1
View File
@@ -734,7 +734,7 @@ class WizardMultiChartsAccounts(models.TransientModel):
# Create the current year earning account (outside of the CoA)
self.env['account.account'].create({
'code': '9999',
'code': '999999',
'name': _('Undistributed Profits/Losses'),
'user_type_id': self.env.ref("account.data_unaffected_earnings").id,
'company_id': company.id,})