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-17 01:23:39 +00:00
|
|
|
'old_profile_id': fields.Many2One('profile', "Old Profile"),
|
2015-02-10 01:28:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
User.register()
|