13 lines
337 B
Python
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()
|