From 4de56ae884827fa4903d2dc534da2ec04c80a67f Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Mon, 11 Mar 2019 18:11:31 +0100 Subject: [PATCH] =?UTF-8?q?Bouton=20facture=20li=C3=A9e=20invisible=20pour?= =?UTF-8?q?=20soci=C3=A9t=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/res_partner_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/res_partner_view.xml b/views/res_partner_view.xml index b5e5b01..4a53ccb 100644 --- a/views/res_partner_view.xml +++ b/views/res_partner_view.xml @@ -285,7 +285,7 @@ <field name="arch" type="xml"> <div name="button_box" position="inside"> <button type="object" class="oe_stat_button" icon="fa-pencil-square-o" name="action_view_partner_invoices_benef" - attrs="{'invisible': [('customer', '=', False)]}" context="{'default_beneficiaire_id': active_id}"> + attrs="{'invisible': ['|',('customer', '=', False),('is_company','=', True)]}" context="{'default_beneficiaire_id': active_id}"> <div class="o_form_field o_stat_info"> <span class="o_stat_value"> <field name="total_invoiced_benef" widget='monetary' options="{'currency_field': 'currency_id'}"/> -- GitLab