From 713408223c78a7a8b21111c9bca25ec4adabc343 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 3 Jan 2019 17:35:42 -0600 Subject: [PATCH] [FIX] Duplication --- agreement/models/agreement.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index 93d1df38..8588552b 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -12,10 +12,7 @@ class Agreement(models.Model): return self.env.ref('agreement.agreement_stage_new') # General - name = fields.Char( - string="Title", - required=True - ) + name = fields.Char(string="Title", required=True) is_template = fields.Boolean( string="Is a Template?", default=False, @@ -101,6 +98,7 @@ class Agreement(models.Model): ) reference = fields.Char( string="Reference", + copy=False, required=True, default=lambda self: _('New'), track_visibility='onchange',