changeset daa23021a482 in modules/notification_email:5.8
details: 
https://hg.tryton.org/modules/notification_email?cmd=changeset&node=daa23021a482
description:
        Do not migrate log if it has resource

        issue10855
        review364201002
        (grafted from 789a2cf4007744330cfe70cfe81a9eb2d9750e96)
diffstat:

 notification.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4e541f0511ca -r daa23021a482 notification.py
--- a/notification.py   Wed Sep 01 22:57:57 2021 +0200
+++ b/notification.py   Wed Oct 13 18:27:52 2021 +0200
@@ -385,7 +385,7 @@
         cursor.execute(*table.update(
                 [table.notification, table.resource],
                 [notification, resource],
-                where=table.trigger != Null))
+                where=(table.trigger != Null) & (table.resource == Null)))
         table_h.not_null_action('trigger', 'remove')
 
     def get_date(self, name):

Reply via email to