23 lines
489 B
Python
23 lines
489 B
Python
|
import time
|
||
|
|
||
|
from netforce.model import Model,fields,get_model
|
||
|
|
||
|
class ReportDiscontinuePatient(Model):
|
||
|
_name="clinic.report.discontinue.patient"
|
||
|
_string="Report Discontinue 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
|
||
|
|
||
|
ReportDiscontinuePatient.register()
|