details:   https://code.tryton.org/tryton/commit/e374c74141ca
branch:    default
user:      Cédric Krier <[email protected]>
date:      Wed Feb 25 15:24:25 2026 +0100
description:
        Do not show empty invoiced progress on project work
diffstat:

 modules/project_invoice/project.py |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 533b5582f166 -r e374c74141ca modules/project_invoice/project.py
--- a/modules/project_invoice/project.py        Wed Feb 25 15:25:02 2026 +0100
+++ b/modules/project_invoice/project.py        Wed Feb 25 15:24:25 2026 +0100
@@ -92,8 +92,12 @@
 
 class Progress:
     __slots__ = ()
-    invoiced_progress = fields.One2Many('project.work.invoiced_progress',
-        'work', 'Invoiced Progress', readonly=True)
+    invoiced_progress = fields.One2Many(
+        'project.work.invoiced_progress', 'work',
+        "Invoiced Progress", readonly=True,
+        states={
+            'invisible': ~Eval('invoiced_progress'),
+            })
 
     @classmethod
     def __setup__(cls):

Reply via email to