diff --git a/coworking_coworker/models/res_partner.py b/coworking_coworker/models/res_partner.py
index 74d11b5..8e8a892 100644
--- a/coworking_coworker/models/res_partner.py
+++ b/coworking_coworker/models/res_partner.py
@@ -10,6 +10,8 @@ class ResPartner(models.Model):
_inherit = 'res.partner'
is_coworker = fields.Selection([('is_coworker', 'Coworker')])
+ # coworker_count = fields.Integer('Number of coworker',
+ # compute='_compute_coworker_count')
company_ids = fields.One2many(
@@ -29,6 +31,13 @@ class ResPartner(models.Model):
full_contact_adress = fields.Char(compute='_compute_full_contact_adress')
+ # @api.depends('is_coworker')
+ # def _compute_coworker_count(self):
+ # """ Computes number of coworker """
+ # for res_partner in self:
+ # if res_partner.partner_id is self.is_coworker():
+ # self.coworker_count = len(res_partner.partner_id)
+
@api.depends('street', 'zip', 'city')
def _compute_full_contact_adress(self):
"""Concatènation de l'adresse si les chanps street, czip et city sont renseignés"""
diff --git a/coworking_coworker/views/res_partner_views.xml b/coworking_coworker/views/res_partner_views.xml
index ea75fb9..d838f9d 100644
--- a/coworking_coworker/views/res_partner_views.xml
+++ b/coworking_coworker/views/res_partner_views.xml
@@ -66,12 +66,12 @@
-
+
+ res_model="res.partner" view_mode="calendar,graph" />
- res.partner.calendar.inherit
+ res.partner.calendar
res.partner
+
+
+ res.partner.graph
+ res.partner
+
+
+
+
+
+
+
+