From 1a408090c361f984f3596d3e79043c9084cb8753 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Mon, 26 Oct 2015 10:51:57 +0700 Subject: [PATCH] prevent to generate dlz on hdcase (accountant required) --- netforce_clinic/models/hd_case.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index 5a05eb8..16c7a99 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -814,6 +814,8 @@ class HDCase(Model): prod=line.product_id if prod.type != 'stock': continue + if not st.dlz_picking_auto and prod.categ_id.code=='DLZ': + continue # check orginal product prod_code=prod.code.split("-")[0] if patient.type_id.main_product: