clinic/netforce_clinic/models/report_hd_monthly.py

23 lines
436 B
Python

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()