hospital_demo_py/models/hos_patient.xml

8 lines
471 B
XML

<model name="hos.patient" string="Patient">
<field name="addresses" string="Addresses" type="one2many" relation="address" relfield="related_id"/>
<field name="age" string="Age" type="integer" function="get_age"/>
<field name="birth_date" string="Birth Date" type="date" search="1"/>
<field name="name" string="Name" type="char" required="1" search="1"/>
<field name="visits" string="Visits" type="one2many" relation="hos.visit" relfield="patient_id"/>
</model>