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-18 01:39:03 +00:00
|
|
|
'branch_id': fields.Many2One("clinic.branch","Branch"),
|
2015-03-17 01:23:39 +00:00
|
|
|
'old_profile_id': fields.Many2One('profile', "Old Profile"),
|
2015-03-25 05:22:10 +00:00
|
|
|
'select_branch': fields.Boolean("Can Change Branch"),
|
2015-03-30 06:40:46 +00:00
|
|
|
'auto_load_dpt': fields.Boolean("Auto Load Branch & Department"),
|
|
|
|
}
|
|
|
|
|
|
|
|
_defaults={
|
|
|
|
'auto_load_dpt': True,
|
2015-02-10 01:28:30 +00:00
|
|
|
}
|
|
|
|
User.register()
|