conv_bal
watcha.h@almacom.co.th 2015-01-16 11:47:11 +07:00
parent a90c01c4d9
commit df6c188c32
3 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,8 @@
<search model="clinic.hd.case"> <search model="clinic.hd.case">
<field name="number"/> <field name="number"/>
<field name="time_start"/> <field name="date"/>
<field name="time_stop"/>
<field name="patient_id"/>
<field name="cycle_id"/> <field name="cycle_id"/>
<field name="state"/> <field name="patient_id"/>
<field name="department_id"/>
<field name="branch_id"/>
</search> </search>

View File

@ -9,10 +9,10 @@ class MakeAPTLine(Model):
'patient_id': fields.Many2One("clinic.patient","Patient"), 'patient_id': fields.Many2One("clinic.patient","Patient"),
'mon_cycle_id': fields.Many2One("clinic.cycle","Monday"), 'mon_cycle_id': fields.Many2One("clinic.cycle","Monday"),
'tue_cycle_id': fields.Many2One("clinic.cycle","Tuesday"), 'tue_cycle_id': fields.Many2One("clinic.cycle","Tuesday"),
'wed_cycle_id': fields.Many2One("clinic.cycle","Wedsday"), 'wed_cycle_id': fields.Many2One("clinic.cycle","Wednesday"),
'thu_cycle_id': fields.Many2One("clinic.cycle","Thursday"), 'thu_cycle_id': fields.Many2One("clinic.cycle","Thursday"),
'fri_cycle_id': fields.Many2One("clinic.cycle","Friday"), 'fri_cycle_id': fields.Many2One("clinic.cycle","Friday"),
'sat_cycle_id': fields.Many2One("clinic.cycle","Satherday"), 'sat_cycle_id': fields.Many2One("clinic.cycle","Saturday"),
'sun_cycle_id': fields.Many2One("clinic.cycle","Sunday"), 'sun_cycle_id': fields.Many2One("clinic.cycle","Sunday"),
'department_id': fields.Many2One("clinic.department","Department"), 'department_id': fields.Many2One("clinic.department","Department"),
} }

View File

@ -9,7 +9,7 @@ class PatientCycle(Model):
"patient_id": fields.Many2One('clinic.patient',"Patient",required=True,on_delete="cascade",search=True), "patient_id": fields.Many2One('clinic.patient',"Patient",required=True,on_delete="cascade",search=True),
"cycle_id": fields.Many2One('clinic.cycle',"Cycle",search=True), "cycle_id": fields.Many2One('clinic.cycle',"Cycle",search=True),
"department_id": fields.Many2One('clinic.department',"Department",search=True), "department_id": fields.Many2One('clinic.department',"Department",search=True),
'day': fields.Selection([('mon', 'Monday'), ('tue','Tuesday'), ('wed','Wedsday'),('thu','Thursday'),('fri','Friday'),('sat','Satherday'),('sun','Sunday')], 'Day',search=True), 'day': fields.Selection([('mon', 'Monday'), ('tue','Tuesday'), ('wed','Wednesday'),('thu','Thursday'),('fri','Friday'),('sat','Saturday'),('sun','Sunday')], 'Day',search=True),
} }
PatientCycle.register() PatientCycle.register()