feature/4-patient-doctor-management #24

Merged
luis_portillo merged 11 commits from feature/4-patient-doctor-management into dev 2025-07-14 04:53:51 +00:00
2 changed files with 21 additions and 0 deletions
Showing only changes of commit e9ffe7a4bf - Show all commits

View File

@ -42,5 +42,22 @@
<field name="email">sofia.vargas@clinic.com</field>
</record>
<!-- Datos de Demostración para Tutor y Paciente Menor de Edad -->
<record id="demo_tutor_1" model="res.partner">
<field name="name">Laura Mendoza</field>
<field name="phone">+1-202-555-0188</field>
<field name="email">laura.mendoza@example.com</field>
</record>
<record id="demo_patient_minor_1" model="res.partner">
<field name="name">Pedro Infante Jr.</field>
<field name="is_patient" eval="True"/>
<field name="patient_identifier">P-M12E03</field>
<field name="origin">Carga Inicial</field>
<field name="birthdate_date" eval="(datetime.now() - relativedelta(years=5)).strftime('%Y-%m-%d')"/>
<field name="gender">male</field>
<field name="parent_id" ref="demo_tutor_1"/>
</record>
</data>
</odoo>

View File

@ -22,6 +22,10 @@
<field name="doctor_license" invisible="not is_doctor"/>
</group>
</group>
<group string="Relación Tutor/Paciente" name="tutor_info">
<field name="parent_id" string="Tutor / Responsable"/>
<field name="child_ids" string="Pacientes a Cargo"/>
</group>
</page>
</xpath>
</field>