From 5fd5f4c02031467ade1dbaaff3a67c11731eaef5 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Wed, 16 Mar 2016 11:35:26 +0100 Subject: [PATCH] [IMP] status is now a selection field --- partner_identification/models/res_partner_id_number.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/partner_identification/models/res_partner_id_number.py b/partner_identification/models/res_partner_id_number.py index 87483683a..004600681 100644 --- a/partner_identification/models/res_partner_id_number.py +++ b/partner_identification/models/res_partner_id_number.py @@ -32,5 +32,9 @@ class ResPartnerIdNumber(models.Model): valid_from = fields.Date(string="Valid from") valid_until = fields.Date(string="Valid until") comment = fields.Text(string="Notes") - status = fields.Char(string="Status") + status = fields.Selection( + [('draft', 'New'), + ('open', 'Running'), + ('pending', 'To Renew'), + ('close', 'Expired')]) active = fields.Boolean(string="Active", default=True)