clinic/netforce_clinic/models/base_user.py

19 lines
634 B
Python
Raw Normal View History

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"),
'auto_load_dpt': fields.Boolean("Auto Load Branch & Department"),
}
_defaults={
'auto_load_dpt': True,
2015-02-10 01:28:30 +00:00
}
2015-12-18 06:55:19 +00:00
2015-02-10 01:28:30 +00:00
User.register()