From 3373af9620cc6f63ec331aca5db44746e99555e9 Mon Sep 17 00:00:00 2001 From: "Phongsan.b" Date: Thu, 28 Aug 2014 18:21:34 +0700 Subject: [PATCH] add file --- clinic/actions/clinic_hd_case_line_detail.xml | 7 +++++++ clinic/models/clinic_hd_case_line_detail.py | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 clinic/actions/clinic_hd_case_line_detail.xml create mode 100644 clinic/models/clinic_hd_case_line_detail.py diff --git a/clinic/actions/clinic_hd_case_line_detail.xml b/clinic/actions/clinic_hd_case_line_detail.xml new file mode 100644 index 0000000..986b740 --- /dev/null +++ b/clinic/actions/clinic_hd_case_line_detail.xml @@ -0,0 +1,7 @@ + + clinic_hd_case_line_detail + Hd Case list Detial + list + clinic.hd.case.line.detail + clinic_menu + diff --git a/clinic/models/clinic_hd_case_line_detail.py b/clinic/models/clinic_hd_case_line_detail.py new file mode 100644 index 0000000..ecb77e3 --- /dev/null +++ b/clinic/models/clinic_hd_case_line_detail.py @@ -0,0 +1,19 @@ +from netforce.model import Model, fields, get_model +from netforce.utils import get_data_path +import time +from netforce.access import get_active_user +from netforce.access import get_active_company + +class HdcaselineDetail(Model): + _name="clinic.hd.case.line.detail" + _fields={ + "hd_case_id": fields.Many2One("clinic.hd.case","HdCase",required=True,on_delete="cascade"), + "product_id": fields.Many2One("product","Product",search=True), + "detail": fields.Char("Description",search=True), + "qty":fields.Integer("QTY"), + "uom_id": fields.Many2One("uom","UOM",required=True,search=True), + "price":fields.Float("Price"), + "total":fields.Float("Total"), + } +HdcaselineDetail.register() +