예제 #1
0
파일: trigger.py 프로젝트: tryton/trytond
 def queue_trigger_action(self, records):
     trigger_records = Transaction().trigger_records[self.id]
     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)
예제 #2
0
파일: trigger.py 프로젝트: zarumaru/trytond
 def queue_trigger_action(self, records):
     trigger_records = Transaction().trigger_records[self.id]
     ids = set(map(int, records)) - trigger_records
     if ids:
         self.__class__.__queue__.trigger_action(self, list(ids))
         trigger_records.update(ids)