|
@ -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', |
|
|