changeset 2f10a06d17ab in modules/project:default
details: https://hg.tryton.org/modules/project?cmd=changeset;node=2f10a06d17ab
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
diffstat:

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

diffs (12 lines):

diff -r bfa0763f04cf -r 2f10a06d17ab party.py
--- a/party.py  Mon Nov 02 16:04:52 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