diff --git a/coworking_base/__manifest__.py b/coworking_base/__manifest__.py
index 2a26a6c..b99c7eb 100644
--- a/coworking_base/__manifest__.py
+++ b/coworking_base/__manifest__.py
@@ -25,5 +25,5 @@
'license': 'AGPL-3',
'application': False,
'installable': True,
- 'depends': ['base', 'contacts']
+ 'depends': ['contacts']
}
diff --git a/coworking_coworker/__manifest__.py b/coworking_coworker/__manifest__.py
index 8d9faad..0be4d00 100644
--- a/coworking_coworker/__manifest__.py
+++ b/coworking_coworker/__manifest__.py
@@ -25,11 +25,7 @@
'license': 'AGPL-3',
'application': False,
'installable': True,
- 'data': ['views/res_partner_views.xml',
- # 'views/res_partner_menu.xml'
- # 'security/ir.model.access.csv',
- # 'views/coworker_views.xml'
- ],
+ 'data': ['views/res_partner_views.xml'],
'depends': ['coworking_base']
}
diff --git a/coworking_coworker/models/res_partner.py b/coworking_coworker/models/res_partner.py
index e34c6bd..ddec5fe 100644
--- a/coworking_coworker/models/res_partner.py
+++ b/coworking_coworker/models/res_partner.py
@@ -9,7 +9,7 @@ class ResPartner(models.Model):
""" Coworker model """
_inherit = 'res.partner'
- is_coworker = fields.Selection([('is_coworker', 'Coworker')])
+ is_coworker = fields.Boolean('Coworker', default=False)
# coworker_count = fields.Integer('Number of coworker',
# compute='_compute_coworker_count')
diff --git a/coworking_coworker/views/res_partner_views.xml b/coworking_coworker/views/res_partner_views.xml
index 8f5c525..5aa155b 100644
--- a/coworking_coworker/views/res_partner_views.xml
+++ b/coworking_coworker/views/res_partner_views.xml
@@ -7,16 +7,13 @@
res.partner
-
-
-
+
+
+
+
-
-
-
-
-
-
@@ -59,22 +56,30 @@
res.partner
-
+
-
+
+
+
+
+
+ display: none;
+
+
+ display: none;
+ res_model="res.partner" view_mode="kanban,form,calendar,graph" />
res.partner.calendar
res.partner
-
@@ -93,7 +98,7 @@
-
+