mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-10-25 07:27:39 -05:00
[PATCH] Upstream patch - 16092023
This commit is contained in:
1 parent
efe8d7d418
commit
7ec708fd00
1 file changed
+2
-2
@@ -156,9 +156,9 @@ class SequenceMixin(models.AbstractModel):
|
||||
if self._sequence_field not in self._fields or not self._fields[self._sequence_field].store:
|
||||
raise ValidationError(_('%s is not a stored field', self._sequence_field))
|
||||
where_string, param = self._get_last_sequence_domain(relaxed)
|
||||
if self.id or self.id.origin:
|
||||
if self._origin.id:
|
||||
where_string += " AND id != %(id)s "
|
||||
param['id'] = self.id or self.id.origin
|
||||
param['id'] = self._origin.id
|
||||
|
||||
query = f"""
|
||||
SELECT {{field}} FROM {self._table}
|
||||
|
||||
Reference in new issue
Block a user