clinic/netforce_clinic/models/department_profile.py

13 lines
337 B
Python

from netforce.model import Model, fields
class DepartmentProfile(Model):
_name="clinic.department.profile"
_string="Department Profile"
_fields={
'name': fields.Char("Name", required=True, search=True),
"departments": fields.Many2Many("clinic.department","Departments"),
}
DepartmentProfile.register()