From 3471f0b207337444b27da42e2d19790b18df87b5 Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Fri, 16 Jan 2015 08:14:24 +0700 Subject: [PATCH] visit report --- netforce_clinic/layouts/clinic_make_apt.xml | 2 +- netforce_clinic/models/report_visit.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/netforce_clinic/layouts/clinic_make_apt.xml b/netforce_clinic/layouts/clinic_make_apt.xml index 824ddbe..6ff2be3 100644 --- a/netforce_clinic/layouts/clinic_make_apt.xml +++ b/netforce_clinic/layouts/clinic_make_apt.xml @@ -1,4 +1,4 @@ -
+ diff --git a/netforce_clinic/models/report_visit.py b/netforce_clinic/models/report_visit.py index 1b78eed..556d48e 100644 --- a/netforce_clinic/models/report_visit.py +++ b/netforce_clinic/models/report_visit.py @@ -83,7 +83,8 @@ class ReportVisit(Model): 'tid': record.patient_id.type_id.id or '', 'did': record.doctor_id.id, 'dname': record.doctor_id.name or "", - 'date': record.visit_date or '', + #'date': record.visit_date or '', + 'date': utils.date2thai(record.visit_date or '',format='%(Td)s %(d)s/%(m)s/%(BY)s'), 'note': record.note or '', }) no+=1