2015-02-10 01:28:30 +00:00
|
|
|
from netforce.model import Model, fields
|
|
|
|
|
|
|
|
class User(Model):
|
|
|
|
_inherit="base.user"
|
|
|
|
_fields={
|
|
|
|
'department_profile_id': fields.Many2One("clinic.department.profile","Department Profile"),
|
2015-03-13 11:42:57 +00:00
|
|
|
'department_id': fields.Many2One("clinic.department","Current Department"),
|
2015-03-15 13:40:17 +00:00
|
|
|
'department_include': fields.Selection([['yes','Yes'],['no','No']],"Include"),
|
2015-02-10 01:28:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
User.register()
|