clinic/netforce_clinic/models/personal_move.py

19 lines
635 B
Python
Raw Normal View History

2014-11-05 05:06:43 +00:00
from netforce.model import Model, fields
class PersonalMove(Model):
_name="clinic.personal.move"
_string="Personal Move"
_fields={
"personal_id": fields.Many2One("clinic.personal","Personal (Doctor/Nurse)"),
"level_id": fields.Many2One("clinic.personal.level","Personal Level"),
"from_company_id": fields.Many2One("company", "From"),
"to_company_id": fields.Many2One("company", "To"),
"hire_date": fields.Date("Hire Date"),
"resign_date": fields.Date("Resign Date"),
"wage": fields.Float("Wage"),
"note": fields.Text("Note"),
}
PersonalMove.register()