changeset 3ae415857d9e in modules/project:5.8
details: https://hg.tryton.org/modules/project?cmd=changeset;node=3ae415857d9e
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 751162e34026 -r 3ae415857d9e party.py
--- a/party.py Fri Dec 11 15:44:03 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(