From 60530a4c3c6dd62e7dfd49ae821b3b95573288f5 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 7 Nov 2017 17:55:42 +0100 Subject: [PATCH] Add field contact_image with widget image and class oe_avatar --- models/coworker.py | 7 +++++++ views/coworker_views.xml | 1 + 2 files changed, 8 insertions(+) diff --git a/models/coworker.py b/models/coworker.py index 8908bd7..9fa2c37 100644 --- a/models/coworker.py +++ b/models/coworker.py @@ -22,16 +22,23 @@ class Coworker(models.Model): company_name = fields.Char('Company') job = fields.Char() contact_date = fields.Date(default=fields.Date.context_today) + +#Adress fields street = fields.Char() contact_zip = fields.Char() city = fields.Char() full_contact_adress = fields.Char(compute='_compute_full_contact_adress') + phone_number = fields.Char() gsm = fields.Char('GSM') email = fields.Char() url = fields.Char('URL') note = fields.Text() + #Images fields + contact_image = fields.Binary() + + is_done = fields.Boolean('Done?') is_active = fields.Boolean('Active?', default=True) diff --git a/views/coworker_views.xml b/views/coworker_views.xml index 587bca2..167c6f5 100644 --- a/views/coworker_views.xml +++ b/views/coworker_views.xml @@ -10,6 +10,7 @@ +