mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-10-31 10:04:02 -05:00
Merge branch 'master-upstream-patch-16092023' into 'master'
[PATCH] Upstream patch - 16092023 See merge request flectra-hq/flectra!1135
This commit is contained in:
commit
195e53e1f5
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