clinic/netforce_clinic/models/base_user.py

12 lines
376 B
Python

from netforce.model import Model, fields
class User(Model):
_inherit="base.user"
_fields={
'department_profile_id': fields.Many2One("clinic.department.profile","Department Profile"),
'department_id': fields.Many2One("clinic.department","Current Department"),
'old_profile_id': fields.Many2One('profile', "Old Profile"),
}
User.register()