clinic/netforce_clinic/models/report_staff_patient.py

15 lines
497 B
Python
Raw Normal View History

2015-02-02 10:35:47 +00:00
from netforce.model import Model, fields
class ReportStaffPatient(Model):
_name='clinic.report.staff.patient'
_string="Report Staff Patient"
_fields={
'report_staff_id': fields.Many2One("clinic.report.staff","Report Staff", required=True, on_delete="cascade"),
2015-03-02 04:03:07 +00:00
'patient_id': fields.Many2One("clinic.patient","Patient",domain=[['state','=','admit']]),
2015-02-02 10:35:47 +00:00
'date': fields.Date("Date"),
'amount': fields.Float("Amount"),
}
ReportStaffPatient.register()