diff --git a/bemade_sethy_configuration/__manifest__.py b/bemade_sethy_configuration/__manifest__.py
index 3787b0d..da5c4cf 100644
--- a/bemade_sethy_configuration/__manifest__.py
+++ b/bemade_sethy_configuration/__manifest__.py
@@ -32,7 +32,6 @@
'data/partner_relation_type_data.xml',
'data/company_data.xml',
'views/res_partner_relation_views.xml',
- 'views/property_view.xml',
# 'views/membership_membership_line.xml',
'views/res_partner_views.xml',
diff --git a/bemade_sethy_configuration/models/res_partner.py b/bemade_sethy_configuration/models/res_partner.py
index 1f10477..aa31830 100644
--- a/bemade_sethy_configuration/models/res_partner.py
+++ b/bemade_sethy_configuration/models/res_partner.py
@@ -132,3 +132,4 @@ class ResPartner(models.Model):
partner.category_id |= property_tag
else:
partner.category_id -= property_tag
+
diff --git a/bemade_sethy_configuration/static/icon.png b/bemade_sethy_configuration/static/icon.png
new file mode 100644
index 0000000..3ee5128
Binary files /dev/null and b/bemade_sethy_configuration/static/icon.png differ
diff --git a/bemade_sethy_configuration/views/res_partner_views.xml b/bemade_sethy_configuration/views/res_partner_views.xml
index 6bdcf19..afa7588 100644
--- a/bemade_sethy_configuration/views/res_partner_views.xml
+++ b/bemade_sethy_configuration/views/res_partner_views.xml
@@ -14,51 +14,50 @@
+ attrs="{'required' : [('type', '=', 'contact')], 'invisible': ['|', ('is_company','=', False),
+ ('is_property','=', True)]}"/>
+ attrs="{'invisible': [('is_property','=', False)]}"/>
- 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
+ {'invisible': [('is_property','=', True)]}
-
+
@@ -67,11 +66,11 @@
-
+
+ attrs="{}" invisible="1"/>
-
+
@@ -115,22 +114,17 @@
-
- res.partner.select
- res.partner
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
\ No newline at end of file