mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Add comment to explain that code should be set to False
This commit is contained in:
@@ -47,6 +47,11 @@ class Sequence(orm.Model):
|
||||
'number_increment': seq.number_increment,
|
||||
'padding': seq.padding,
|
||||
'company_id': seq.company_id.id,
|
||||
'code': False,
|
||||
# the Sequence Type is set to False, because the
|
||||
# the fiscal-year-specific sequence must not be catched
|
||||
# by next_by_code(), see
|
||||
# https://github.com/OCA/account-financial-tools/issues/115
|
||||
}, context=context)
|
||||
self.pool['account.sequence.fiscalyear']\
|
||||
.create(cr, uid, {
|
||||
|
||||
Reference in New Issue
Block a user