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