Browse Source

[FIX] Duplication

pull/254/head
Maxime Chambreuil 6 years ago
parent
commit
713408223c
  1. 6
      agreement/models/agreement.py

6
agreement/models/agreement.py

@ -12,10 +12,7 @@ class Agreement(models.Model):
return self.env.ref('agreement.agreement_stage_new') return self.env.ref('agreement.agreement_stage_new')
# General # General
name = fields.Char(
string="Title",
required=True
)
name = fields.Char(string="Title", required=True)
is_template = fields.Boolean( is_template = fields.Boolean(
string="Is a Template?", string="Is a Template?",
default=False, default=False,
@ -101,6 +98,7 @@ class Agreement(models.Model):
) )
reference = fields.Char( reference = fields.Char(
string="Reference", string="Reference",
copy=False,
required=True, required=True,
default=lambda self: _('New'), default=lambda self: _('New'),
track_visibility='onchange', track_visibility='onchange',

Loading…
Cancel
Save