diff --git a/views/res_partner.xml b/views/res_partner.xml index 2f04bba6a07eb7d2a76247cb6d26d8e416ea9602..1a5348675def338e4d859e3d80e9d97f7397c55b 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)]}">