Add comment to explain that code should be set to False

This commit is contained in:
Alexis de Lattre
2014-12-31 16:26:41 +01:00
parent 266c8f6dad
commit dc34480a68

View File

@@ -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, {