prevent to generate dlz on hdcase (accountant required)

production
watcha.h 2015-10-26 10:51:57 +07:00
parent e3a75860ea
commit 1a408090c3
1 changed files with 2 additions and 0 deletions

View File

@ -814,6 +814,8 @@ class HDCase(Model):
prod=line.product_id prod=line.product_id
if prod.type != 'stock': if prod.type != 'stock':
continue continue
if not st.dlz_picking_auto and prod.categ_id.code=='DLZ':
continue
# check orginal product # check orginal product
prod_code=prod.code.split("-")[0] prod_code=prod.code.split("-")[0]
if patient.type_id.main_product: if patient.type_id.main_product: