From 29c7033d0896c936adbb9474507795148f5fb981 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Sun, 29 Oct 2017 10:58:17 +0100 Subject: [PATCH] [QUA]CRM Action quality : redundant names --- yaltik_crm_action/models/crm_action.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yaltik_crm_action/models/crm_action.py b/yaltik_crm_action/models/crm_action.py index d568154..c28e231 100644 --- a/yaltik_crm_action/models/crm_action.py +++ b/yaltik_crm_action/models/crm_action.py @@ -36,11 +36,11 @@ class CrmAction(models.Model): priority = fields.Selection([('0', 'Not evaluated'), ('1', 'Low'), ('2', 'Medium'), ('3', 'High'), ('4', 'Urgent')], - string='Priority', default='0', index=True) + default='0', index=True) details = fields.Text() partner_id = fields.Many2one('res.partner', string='Customer', index=True) - date = fields.Datetime('Date', required=True, default=fields.Date.context_today) + date = fields.Datetime(required=True, default=fields.Date.context_today) user_id = fields.Many2one('res.users', string='User', required=True, default=lambda self: self.env.user) lead_id = fields.Many2one('crm.lead', string='Lead', ondelete='cascade') @@ -148,6 +148,6 @@ class CrmActionType(models.Model): _description = 'CRM Action Type' _order = 'priority' - name = fields.Char('Name', required=True) - priority = fields.Integer('Priority', required=True, default=0) - active = fields.Boolean('Active', default=True) + name = fields.Char(required=True) + priority = fields.Integer(required=True, default=0) + active = fields.Boolean(default=True)