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 Issued date. For example, date when person approved his driving exam, 21/10/2009
Valid until: Valid until:
Expiration date. For example, date when person needs to renew his driver license, 21/10/2019 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: Notes:
Any further information related with this ID. For example, vehicle types this person can drive 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_from = fields.Date(string="Valid from")
valid_until = fields.Date(string="Valid until") valid_until = fields.Date(string="Valid until")
comment = fields.Text(string="Notes") comment = fields.Text(string="Notes")
state = fields.Char(string="State", size=16)
status = fields.Char(string="Status")
active = fields.Boolean(string="Active", default=True) 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="date_issued" />
<field name="valid_from" /> <field name="valid_from" />
<field name="valid_until" /> <field name="valid_until" />
<field name="status" />
</group> </group>
<separator colspan="4" string="Notes"/> <separator colspan="4" string="Notes"/>
<field name="comment" colspan="4" nolabel="1"/> <field name="comment" colspan="4" nolabel="1"/>
@ -34,6 +35,7 @@
<field name="date_issued" /> <field name="date_issued" />
<field name="valid_from" /> <field name="valid_from" />
<field name="valid_until" /> <field name="valid_until" />
<field name="status" />
</tree> </tree>
</field> </field>
</record> </record>

Loading…
Cancel
Save