clinic/netforce_clinic/models/report_medical_summary.py

23 lines
473 B
Python
Raw Normal View History

2014-11-05 06:45:28 +00:00
import time
from netforce.model import Model,fields,get_model
class ReportMedicalSummary(Model):
_name="clinic.report.medical.summary"
_string="Report Medical Summary"
_transient=True
_fields={
"date": fields.Date("Month", required=True),
}
_defaults={
'date': lambda *a: time.strftime("%Y-%m-%d"),
}
def get_report_data(self,ids,context={}):
data={}
return data
ReportMedicalSummary.register()