clinic/netforce_clinic/models/hd_case_dialyzer.py

20 lines
981 B
Python
Raw Normal View History

2014-10-02 19:12:52 +00:00
from netforce.model import Model, fields
class HdcaseDialyzer(Model):
_name="clinic.hd.case.dialyzer"
_fields={
"hd_case_id": fields.Many2One("clinic.hd.case","HdCase",required=True,on_delete="cascade"),
"dialyzer_id": fields.Many2One("clinic.dialyzer","Dialzer",search=True),
"description": fields.Char("Description",search=True),
"use_time":fields.Integer("Use time"),
"max_use_time":fields.Integer("Max use time"),
2014-10-03 07:27:57 +00:00
"member_type": fields.Selection([("unsub","Unsub cellul"),("sub","Sub cellul"),("synthetic","Synthetic")],"Member Type"),
"dialyzer_type": fields.Selection([("low","low flux"),("high","high flux"),("dbl","dbl hifulx")],"Member Type"),
"bid_flow_rate": fields.Integer("Bid Flow Rate (ml/min)"),
"ultrafittration": fields.Float("Ultrafittration Kg."),
2014-10-02 19:12:52 +00:00
"state":fields.Selection([("draft","New"),("active","Active"),("drop","Drop")],"Status"),
}
HdcaseDialyzer.register()