diff --git a/views/res_partner.xml b/views/res_partner.xml index e45002285fc0b8de326067e9bb2ee689b8ccca60..9017942ce43445ddcee758c751dc1f9c7eb6137e 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -262,6 +262,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)]}">