From c8d761d86ac5010f67eecd77b82a1052aaab7a91 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Mon, 19 Feb 2018 11:39:25 +0100 Subject: [PATCH] Add depends on Button issue6919 review40811002 --- work.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/work.py b/work.py index 23b94aa2b0..7481da2822 100644 --- a/work.py +++ b/work.py @@ -76,6 +76,8 @@ class Work: | (Eval('project_invoice_method', 'manual') == 'manual')), 'readonly': ~Eval('duration_to_invoice'), + 'depends': ['type', 'project_invoice_method', + 'duration_to_invoice'] }, }) cls._error_messages.update({