clinic/netforce_clinic/models/report_hd_monthly.py

23 lines
436 B
Python
Raw Normal View History

2014-10-15 11:46:19 +00:00
import time
from netforce.model import Model, fields
class HDReportMonth(Model):
_name="clinic.hd.report.monthly"
_string="Summary of the Hemodialysis"
_transient=True
_fields={
"date": fields.Date("Month"),
}
_defaults={
'date': lambda *a: time.strftime("%Y-%m-%d"),
}
def get_report_data(self,ids,context={}):
data={}
return data
HDReportMonth.register()