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 - +