Commit 5678d15d 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 8db47f2b
......@@ -218,6 +218,15 @@ class InventoryListBrain(ComputedAttributeGetItemCompatibleMixin):
list(self.getPortalFutureInventoryStateList()) + \
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)
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