clinic/netforce_clinic/models/clinic_round.py

28 lines
563 B
Python
Raw Normal View History

2014-10-08 04:36:22 +00:00
from netforce.model import Model, fields
class ClinicRound(Model):
_name="clinic.round"
_string="Round"
_fields={
"name": fields.Char("Name",required=True,search=True),
}
def get_data(self,context={}):
lines=[]
for i in range(10):
line={
'no': i,
'doctor': 'Doctor %s'%i,
#......
}
lines.append(line)
data={
'lines': lines,
}
print('data ', data)
return data
ClinicRound.register()