Commit 37372547 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_core: getMovmentHistoryList Listbox do not display cancelled stock movements

parent 24595794
...@@ -218,6 +218,15 @@ class InventoryListBrain(ComputedAttributeGetItemCompatibleMixin): ...@@ -218,6 +218,15 @@ class InventoryListBrain(ComputedAttributeGetItemCompatibleMixin):
list(self.getPortalFutureInventoryStateList()) + \ list(self.getPortalFutureInventoryStateList()) + \
list(self.getPortalReservedInventoryStateList()) list(self.getPortalReservedInventoryStateList())
} }
else:
query_kw_update = {
'simulation_state': \
list(self.getPortalFutureInventoryStateList()) + \
list(self.getPortalTransitInventoryStateList()) + \
list(self.getPortalReservedInventoryStateList()) + \
list(self.getPortalCurrentInventoryStateList()) + \
list(("auto_planned",))
}
query_kw.update(query_kw_update) query_kw.update(query_kw_update)
return query_kw return query_kw
......
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