Browse Source

[IMP] Replace field 'state' by 'status' in res_partner_id_number

pull/255/head
Laurent Mignon (ACSONE) 9 years ago
parent
commit
b02634b39f
  1. 2
      partner_identification/README.rst
  2. 2
      partner_identification/models/res_partner_id_number.py
  3. 2
      partner_identification/views/res_partner_id_number_view.xml

2
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

2
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)

2
partner_identification/views/res_partner_id_number_view.xml

@ -15,6 +15,7 @@
<field name="date_issued" />
<field name="valid_from" />
<field name="valid_until" />
<field name="status" />
</group>
<separator colspan="4" string="Notes"/>
<field name="comment" colspan="4" nolabel="1"/>
@ -34,6 +35,7 @@
<field name="date_issued" />
<field name="valid_from" />
<field name="valid_until" />
<field name="status" />
</tree>
</field>
</record>

Loading…
Cancel
Save