From b02634b39f0bf8541e3f1775a9e8538b2d2631e7 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Wed, 16 Mar 2016 10:48:26 +0100 Subject: [PATCH] [IMP] Replace field 'state' by 'status' in res_partner_id_number --- partner_identification/README.rst | 2 ++ partner_identification/models/res_partner_id_number.py | 2 +- partner_identification/views/res_partner_id_number_view.xml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/partner_identification/README.rst b/partner_identification/README.rst index ad0d3f32d..e11df091a 100644 --- a/partner_identification/README.rst +++ b/partner_identification/README.rst @@ -52,6 +52,8 @@ Valid from: Issued date. For example, date when person approved his driving exam, 21/10/2009 Valid until: Expiration date. For example, date when person needs to renew his driver license, 21/10/2019 +Status: + ID status. For example new/to renew/expired Notes: Any further information related with this ID. For example, vehicle types this person can drive diff --git a/partner_identification/models/res_partner_id_number.py b/partner_identification/models/res_partner_id_number.py index bedc5f78e..57e427102 100644 --- a/partner_identification/models/res_partner_id_number.py +++ b/partner_identification/models/res_partner_id_number.py @@ -31,5 +31,5 @@ class ResPartnerIdNumber(models.Model): valid_from = fields.Date(string="Valid from") valid_until = fields.Date(string="Valid until") comment = fields.Text(string="Notes") - state = fields.Char(string="State", size=16) + status = fields.Char(string="Status") active = fields.Boolean(string="Active", default=True) diff --git a/partner_identification/views/res_partner_id_number_view.xml b/partner_identification/views/res_partner_id_number_view.xml index d3d0996ed..fb3b54266 100644 --- a/partner_identification/views/res_partner_id_number_view.xml +++ b/partner_identification/views/res_partner_id_number_view.xml @@ -15,6 +15,7 @@ + @@ -34,6 +35,7 @@ +