clinic/netforce_clinic/models/cycle_item_copy_line.py

15 lines
481 B
Python
Raw Permalink Normal View History

2015-01-22 01:34:22 +00:00
from netforce.model import Model, fields, get_model
class CycleItemCopyLine(Model):
_name="clinic.cycle.item.copy.line"
_transient=True
_fields={
"item_copy_id": fields.Many2One("clinic.cycle.item.copy","Copy Item",required=True,on_delete="cascade"),
'nurse_id': fields.Many2One("clinic.staff","Nurse",domain=[['type','=','nurse']]),
2015-01-22 07:20:04 +00:00
'department_id': fields.Many2One("clinic.department","Department"),
2015-01-22 01:34:22 +00:00
}
CycleItemCopyLine.register()