Commit af2750b8 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_core: fix fullInventory case

check only date of Inventory in this case
parent e9728049
Pipeline #38245 failed with stage
in 0 seconds
......@@ -155,9 +155,13 @@ class Inventory(Delivery):
to_delete_stock_uid_add = to_delete_stock_uid_set.add
to_delete_list = []
to_delete_list_append = to_delete_list.append
inventory_id = self.getId()
for inventory_calculation_dict in default_inventory_calculation_list:
stop_date_list = []
if self.isFullInventory():
stop_date_list.append(self.getStopDate())
else:
list_method = inventory_calculation_dict['list_method']
method = getattr(self, list_method)
for movement in method():
......@@ -205,7 +209,7 @@ class Inventory(Delivery):
not_used_inventory_dict = current_inventory_dict
else:
not_used_inventory_dict = {}
inventory_id = self.getId()
#inventory_id = self.getId()
list_method = inventory_calculation_dict['list_method']
method = getattr(self, list_method)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment