diff --git a/views/res_partner_view.xml b/views/res_partner_view.xml index b5e5b01865589c063a4ceb289a6142e0a0acf4a3..4a53ccb5cd34ca050c8e9af170a01d463d4e72d8 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'}"/>