From 5476faaa1d95a7a97dfc5e7c5b61a40640c9abeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20V=C3=A9zina?= Date: Tue, 5 Dec 2023 12:12:43 -0500 Subject: [PATCH] sethy 17.0 --- bemade_sethy_configuration/__manifest__.py | 1 + .../data/company_data.xml | 4 +-- .../views/res_partner_views.xml | 27 ++++++++++--------- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/bemade_sethy_configuration/__manifest__.py b/bemade_sethy_configuration/__manifest__.py index da5c4cf..d21faaf 100644 --- a/bemade_sethy_configuration/__manifest__.py +++ b/bemade_sethy_configuration/__manifest__.py @@ -11,6 +11,7 @@ 'license': 'GPL-3', 'depends': [ # List of module dependencies + 'account', 'base', 'contacts', 'crm', diff --git a/bemade_sethy_configuration/data/company_data.xml b/bemade_sethy_configuration/data/company_data.xml index e9bb6d1..7149fb6 100644 --- a/bemade_sethy_configuration/data/company_data.xml +++ b/bemade_sethy_configuration/data/company_data.xml @@ -13,8 +13,8 @@ J2G 3V3 450 994-3173 - - + + diff --git a/bemade_sethy_configuration/views/res_partner_views.xml b/bemade_sethy_configuration/views/res_partner_views.xml index afa7588..87a3cae 100644 --- a/bemade_sethy_configuration/views/res_partner_views.xml +++ b/bemade_sethy_configuration/views/res_partner_views.xml @@ -14,50 +14,51 @@ + required="type == 'contact'" + invisible="is_company == False or is_property == True" + /> + invisible="is_property == False"/> - {'invisible': [('is_property','=', True)]} + is_property == True - {'invisible': [('is_property','=', True)]} + is_property == True - {'invisible': [('is_property','=', True)]} + is_property == True - {'invisible': [('is_property','=', True)]} + is_property == True - {'invisible': [('is_property','=', True)]} + is_property == True - +