From 9ee7a1cc4c1cc4d82447d5dff4a44dbf33de4c75 Mon Sep 17 00:00:00 2001 From: hsilvant <hsilvant@scop.coop> Date: Tue, 8 Sep 2020 11:57:48 +0200 Subject: [PATCH] Empeche l'archivage des cooperative --- views/res_partner.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/res_partner.xml b/views/res_partner.xml index 2f04bba..1a53486 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -260,6 +260,10 @@ </header> </xpath> + <xpath expr="//button[@name='toggle_active']" position="attributes"> + <attribute name="attrs">{'invisible': ['&', ('is_cooperative','=', True), ('project_status', '!=', '7_abandonne')]}</attribute> + </xpath> + <!-- Affiche les champs des organismes --> <xpath expr='//form/sheet' position="inside"> <div name="cooperative" attrs="{'invisible': [('is_cooperative', '=', False)]}"> -- GitLab