diff --git a/models/coworker.py b/models/coworker.py index 9fa2c37..467cc40 100644 --- a/models/coworker.py +++ b/models/coworker.py @@ -11,17 +11,18 @@ class Coworker(models.Model): _description = 'Coworker model definition' _order = 'id desc' - full_name = fields.Char(compute='_compute_full_name', store=True, index=True) + contact_date = fields.Date(default=fields.Date.context_today) + full_name = fields.Char(compute='_compute_full_name', store=True, index=True) name = fields.Char(required=True) firstname = fields.Char('First name', required=True) + coworker_type = fields.Selection([('staffer', 'Staffer'), ('worker', 'Worker'), ('member', 'Member'), ('volunteer', 'Volunteer'), ('visitor', 'Visitor')]) company_name = fields.Char('Company') job = fields.Char() - contact_date = fields.Date(default=fields.Date.context_today) #Adress fields street = fields.Char() @@ -35,13 +36,18 @@ class Coworker(models.Model): url = fields.Char('URL') note = fields.Text() - #Images fields +#Images fields contact_image = fields.Binary() - is_done = fields.Boolean('Done?') is_active = fields.Boolean('Active?', default=True) +# # Kanban +# kanban_state = fields.Selection([('normal', 'In Progress'), +# ('blocked', 'Blocked'), +# ('done', 'Ready for next stage')], +# 'Kanban State', default='normal') + @api.depends('name', 'firstname') def _compute_full_name(self): """Concaténation du nom et du prénom""" diff --git a/views/coworker_views.xml b/views/coworker_views.xml index fb54c60..1743dd6 100644 --- a/views/coworker_views.xml +++ b/views/coworker_views.xml @@ -1,7 +1,7 @@ - + Coworker Form coworking.coworker @@ -46,7 +46,7 @@ - + Coworker Tree coworking.coworker @@ -61,7 +61,7 @@ - + Coworker Search coworking.coworker @@ -99,6 +99,33 @@ - + + + Coworker Kanban + coworking.coworker + + + + + + + +
+
+ + + +
+
+ + +
+
+
+
+
+
+