From ffec9795e6194b2a78172d9c9c2a8ca1d461b3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Fri, 21 Apr 2023 10:43:27 +0200 Subject: [PATCH] [IMP] partner_profiles: remove useless fields in position form view --- partner_profiles/__manifest__.py | 2 +- partner_profiles/views/res_partner_view.xml | 46 +++++++++++++++------ 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/partner_profiles/__manifest__.py b/partner_profiles/__manifest__.py index ba116ea..52d47de 100644 --- a/partner_profiles/__manifest__.py +++ b/partner_profiles/__manifest__.py @@ -3,7 +3,7 @@ { "name": "partner_profiles", - "version": "12.0.2.0.0", + "version": "12.0.2.1.0", "author": "Elabore", "website": "https://elabore.coop", "maintainer": "Stéphan Sainléger", diff --git a/partner_profiles/views/res_partner_view.xml b/partner_profiles/views/res_partner_view.xml index a7476db..ef465f0 100644 --- a/partner_profiles/views/res_partner_view.xml +++ b/partner_profiles/views/res_partner_view.xml @@ -64,8 +64,7 @@ - {'invisible': ['|', ('contact_id','!=',False), - ('is_company','=',True)]} + {'invisible': [('is_company','=',True)]} @@ -89,18 +88,28 @@ context="{'default_partner_profile': 1, 'default_is_company': True, 'show_vat': True}" /> + + + + + {'invisible': ['|', ('is_public_profile','=', True), + ('is_position_profile','=', True)]} + + + {'invisible': ['|', ('is_public_profile','=', True), + ('is_position_profile','=', True)]} + + + {'invisible': ['|', ('is_public_profile','=', True), + ('is_position_profile','=', True)]} + + + {'invisible': ['|', ('is_public_profile','=', True), + ('is_position_profile','=', True)]} + - - {'invisible': [('is_public_profile','=', True)]} - - - {'invisible': [('is_public_profile','=', True)]} - - - {'invisible': [('is_public_profile','=', True)]} - @@ -135,8 +144,19 @@ - - {'invisible': [('is_public_profile','=', True)]} + + + + + + + + + + + + +