changeset b696e93257a2 in modules/project:5.6
details: https://hg.tryton.org/modules/project?cmd=changeset;node=b696e93257a2
description:
        Test progress different of 1 to check for erasing party

        The state has been replaced by a status so only the progress can tell 
if the
        project is still open.

        issue9894
        review341071003
        (grafted from 2f10a06d17ab7bc588b00adb8da9a483ff6d46c7)
diffstat:

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

diffs (12 lines):

diff -r c873ba4ab920 -r b696e93257a2 party.py
--- a/party.py  Fri Dec 11 15:44:42 2020 +0100
+++ b/party.py  Sat Dec 05 11:47:21 2020 +0100
@@ -27,7 +27,7 @@
         works = Work.search([
                 ('party', '=', party.id),
                 ('company', '=', company.id),
-                ('state', '!=', 'done'),
+                ('progress', '!=', 1),
                 ])
         if works:
             raise EraseError(

Reply via email to