Commit 1663251f authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_core: getMovmentHistoryList Listbox do not display cancelled stock movements

parent ee49ff32
...@@ -221,6 +221,15 @@ class InventoryListBrain(ComputedAttributeGetItemCompatibleMixin): ...@@ -221,6 +221,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