clinic/netforce_clinic/models/hd_case_dialyzer.py

16 lines
619 B
Python
Raw Normal View History

2014-10-02 19:12:52 +00:00
from netforce.model import Model, fields
2014-11-21 17:31:10 +00:00
class HDCaseDialyzerLine(Model):
2014-10-02 19:12:52 +00:00
_name="clinic.hd.case.dialyzer"
_fields={
2014-11-21 17:31:10 +00:00
"hd_case_id": fields.Many2One("clinic.hd.case","HdCase",on_delete="cascade"),
2014-12-19 16:57:34 +00:00
"dialyzer_type": fields.Selection([("low","low flux"),("high","high flux"),("dbl","dbl hifulx")],"Dialyzer Type"),
2015-01-23 04:29:50 +00:00
"dialyzer_id": fields.Many2One("clinic.dialyzer","Dialyzer",search=True),
2014-10-02 19:12:52 +00:00
"description": fields.Char("Description",search=True),
"use_time":fields.Integer("Use time"),
"max_use_time":fields.Integer("Max use time"),
}
2014-11-21 17:31:10 +00:00
HDCaseDialyzerLine.register()
2014-10-02 19:12:52 +00:00