Sequence number next has no value for type different of incremental

issue5329
review17931002
This commit is contained in:
Cédric Krier
2016-03-16 22:03:41 +01:00
parent 4b7c47b3bd
commit 6b2f90e0f5
+2
View File
@@ -157,6 +157,8 @@ class Sequence(ModelSQL, ModelView):
return Transaction().context.get('code')
def get_number_next(self, name):
if self.type != 'incremental':
return
cursor = Transaction().connection.cursor()
sql_name = self._sql_sequence_name
if sql_sequence and not self._strict: