From edf9f83901c78b236f36a4b698a9552b64d49ed2 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Fri, 13 Mar 2015 23:42:01 +0700 Subject: [PATCH] permission denied --- netforce_clinic/models/hd_case.py | 3 +++ netforce_clinic/todo.txt | 13 ++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index 54169ce..4d0a3b7 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -73,6 +73,8 @@ class HDCase(Model): def _get_expense(self,ids,context={}): res={} + user_id=get_active_user() + set_active_user(1) for obj in self.browse(ids): dlz_use=0 dlz_max=0 @@ -110,6 +112,7 @@ class HDCase(Model): 'dlz_use': dlz_use, 'dlz_max': dlz_max, } + set_active_user(user_id) return res _fields={ diff --git a/netforce_clinic/todo.txt b/netforce_clinic/todo.txt index e322e37..1e270c1 100644 --- a/netforce_clinic/todo.txt +++ b/netforce_clinic/todo.txt @@ -20,7 +20,14 @@ report: - LS, LK - Extract number (Invoice) * -- prevent to gen walk in -- prevent to create visit -- report P. Moo +- prevent to gen walk in -> ok - update patient for K. Ekk +- prevent douplicate + - visit + patient_id,date,cycle_id + - patient + -name + - staff + -name +- report P. Moo -> ok +- wrong GI number