From 74747180732e199532f8530ec2f0d51a14f77c0e Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Sat, 10 Jun 2017 22:50:20 +0700 Subject: [PATCH] slow loading sickbed --- netforce_clinic/models/sickbed.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netforce_clinic/models/sickbed.py b/netforce_clinic/models/sickbed.py index 693c414..fe209df 100644 --- a/netforce_clinic/models/sickbed.py +++ b/netforce_clinic/models/sickbed.py @@ -33,9 +33,9 @@ class SickBed(Model): "available": fields.Boolean("Available"), 'hd_cases': fields.One2Many("clinic.hd.case",'sickbed_id','HDCases'), 'company_id': fields.Many2One("company","Company"), - 'patient_id': fields.Many2One("clinic.patient","Lasted Patient",function="_get_all",function_multi=True,domain=[['state','=','admit']]), - 'image': fields.File("Image",function="_get_all",function_multi=True), - 'date': fields.Date("Lasted Date",function="_get_all",function_multi=True), + #'patient_id': fields.Many2One("clinic.patient","Lasted Patient",function="_get_all",function_multi=True,domain=[['state','=','admit']]), + #'image': fields.File("Image",function="_get_all",function_multi=True), + #'date': fields.Date("Lasted Date",function="_get_all",function_multi=True), "state": fields.Selection([("available","Available"),("not_available","Not Available")],"Status"), 'sequence': fields.Integer("Sequence"), 'note': fields.Text("Note"),