changeset 4803:d71cdcb814a2

Complete task #16082: Include optional expiration date on personal ID documentation
author Luis Falcon <falcon@gnuhealth.org>
date Sat, 27 Nov 2021 12:22:50 +0000
parents 2eb6621c56e0
children fbe1c9f5483e
files tryton/health/health.py tryton/health/view/gnuhealth_alternative_identification_form.xml tryton/health/view/gnuhealth_alternative_identification_tree.xml
diffstat 3 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tryton/health/health.py
+++ b/tryton/health/health.py
@@ -2644,6 +2644,8 @@
             ('other', 'Other'),
         ], 'ID type', required=True, sort=False,)
 
+    expiration_date = fields.Date('Expiration date')
+
     comments = fields.Char('Comments')
 
 
--- a/tryton/health/view/gnuhealth_alternative_identification_form.xml
+++ b/tryton/health/view/gnuhealth_alternative_identification_form.xml
@@ -4,6 +4,8 @@
     <field name="code"/>
     <label name="alternative_id_type"/>
     <field name="alternative_id_type"/>
+    <label name="expiration_date"/>
+    <field name="expiration_date"/>
     <label name="comments"/>
     <field name="comments"/>
 </form>
--- a/tryton/health/view/gnuhealth_alternative_identification_tree.xml
+++ b/tryton/health/view/gnuhealth_alternative_identification_tree.xml
@@ -2,5 +2,6 @@
 <tree editable="1">
     <field name="code" expand="1"/>
     <field name="alternative_id_type" expand="1"/>
+    <field name="expiration_date" expand="1"/>
     <field name="comments" expand="1"/>
 </tree>