cleanup raw materials supplied table for sub-contraction. Fixes #1743

This commit is contained in:
Nabin Hait 2014-06-04 16:41:22 +05:30
parent 1055139c83
commit c3d1d6a946

View File

@ -267,7 +267,7 @@ class BuyingController(StockController):
for d in self.get(raw_material_table):
if [d.main_item_code, d.reference_name] not in parent_items:
# mark for deletion from doclist
delete_list.append([d.main_item_code, d.reference_name])
delete_list.append(d)
# delete from doclist
if delete_list: