Evaluate record against trigger before queueing the action
issue11050 review366381004 (grafted from b44aff9d2dc897c9828a2a417fad1519390828c0) --HG-- branch : 6.0
This commit is contained in:
1 parent
e5e058994e
commit
4898c14af9
1 file changed
+1
-1
@@ -189,7 +189,7 @@ class Trigger(DeactivableMixin, ModelSQL, ModelView):
|
||||
|
||||
def queue_trigger_action(self, records):
|
||||
trigger_records = Transaction().trigger_records[self.id]
|
||||
ids = set(map(int, records)) - trigger_records
|
||||
ids = {r.id for r in records if self.eval(r)} - trigger_records
|
||||
if ids:
|
||||
self.__class__.__queue__.trigger_action(self, list(ids))
|
||||
trigger_records.update(ids)
|
||||
|
||||
Reference in new issue
Block a user