clinic/netforce_clinic/models/cycle.py

18 lines
314 B
Python

from netforce.model import Model, fields
class Cycle(Model):
_name="clinic.cycle"
_string="Cycle"
_fields={
"name": fields.Char("Name",required=True,search=True),
'duration': fields.Integer("Duration (hrs)"),
}
_defaults={
'duration': 1,
}
Cycle.register()