[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:
@@ -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,})
|
||||
|
||||
Reference in New Issue
Block a user