From 55ed1cc7e31515f3d90101436d5a60dfd68b4fa0 Mon Sep 17 00:00:00 2001 From: "chayut.s" Date: Wed, 1 Oct 2014 18:24:28 +0700 Subject: [PATCH] Filter Patient By tab --- netforce_clinic/actions/clinic_patient.xml | 2 +- netforce_clinic/models/clinic_patient.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netforce_clinic/actions/clinic_patient.xml b/netforce_clinic/actions/clinic_patient.xml index af61e9e..b4b9a0d 100644 --- a/netforce_clinic/actions/clinic_patient.xml +++ b/netforce_clinic/actions/clinic_patient.xml @@ -2,6 +2,6 @@ Patients multi_view clinic.patient - [["All",[]],["Draft",[["state","=","draft"]]],["Active",[["state","=","active"]]],["Deactive",[["state","=","deactive"]]]] + [["All",[]],["Medical Goverment",[["type","=","mg"]]],["Social Security",[["type","=","sc"]]],["NHSO(30$)",[["type","=","nhso"]]],["Personal",[["type","=","personal"]]],["Other",[["type","=","other"]]]] clinic_menu diff --git a/netforce_clinic/models/clinic_patient.py b/netforce_clinic/models/clinic_patient.py index b1cf9e4..1f43864 100644 --- a/netforce_clinic/models/clinic_patient.py +++ b/netforce_clinic/models/clinic_patient.py @@ -133,7 +133,7 @@ class Patient(Model): _defaults={ - "state": "draft", + "state": "mg", "date": lambda *a: time.strftime("%Y-%m-%d"), "number": _get_number, "company_id": lambda *a: get_active_company(),