clinic/netforce_clinic/models/report_new_patient.py

23 lines
457 B
Python

import time
from netforce.model import Model,fields,get_model
class ReportNewPatient(Model):
_name="clinic.report.new.patient"
_string="Report New Patient"
_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
ReportNewPatient.register()