From 5b7cadc83d703a56abf3c92d1d5372acde76c0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Fri, 6 May 2022 14:52:25 +0200 Subject: [PATCH] [UPD] Hide useless pages in res.partner form view Hide useless pages for publoc and position profiles --- lcc_members/views/res_partner_view.xml | 38 ++++++++++++-------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/lcc_members/views/res_partner_view.xml b/lcc_members/views/res_partner_view.xml index 0a3792dd..dcde59d6 100644 --- a/lcc_members/views/res_partner_view.xml +++ b/lcc_members/views/res_partner_view.xml @@ -87,25 +87,14 @@ 1 - - {'invisible': [('contact_id','!=',False)]} - - - {'invisible': [('contact_id','!=',False)]} - 0 - 1 1 - -

- To see membership information about this contact, please - go to to the this person form: - -

+ + {'invisible': [('is_main_profile','=',False)]} @@ -132,6 +121,7 @@ {'invisible': [('type', 'in', ['invoice','delivery','other'])]} + {'invisible': ['|', ('contact_id','!=',False), ('is_company','=',True)]} @@ -150,16 +140,22 @@ + + + {'invisible': [('is_main_profile','=',False)]} + + + 1 + + - - {'invisible': [('contact_id','!=',False)]} + + {'invisible': [('is_main_profile','=',False)]} - -

- To see Sales and Purchases an information about this contact, please - go to to the this person form: - -

+ + + + {'invisible': [('is_main_profile','=',False)]}