From 21f71e753eafe94cc94abdeedb4e54a474957250 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Mon, 19 Feb 2018 11:36:40 +0100 Subject: [PATCH] Add depends on Button issue6919 review40811002 --- invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invoice.py b/invoice.py index eb471cd13f..c7a595cda8 100644 --- a/invoice.py +++ b/invoice.py @@ -25,6 +25,7 @@ class Invoice: cls._buttons.update({ 'recall_deposit': { 'invisible': Eval('state') != 'draft', + 'depends': ['state'], }, })