Commit 493f0e94 authored by Jean-Paul Smets's avatar Jean-Paul Smets

added specific url for getCurrentInventory


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@162 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d6f918f
...@@ -161,6 +161,11 @@ class InventoryListBrain(ZSQLBrain): ...@@ -161,6 +161,11 @@ class InventoryListBrain(ZSQLBrain):
return o.getExplanation() return o.getExplanation()
else: else:
return '' return ''
elif cname_id in ('getCurrentInventory',):
resource = self.portal_categories.unrestrictedTraverse(self.resource_relative_url)
return '%s/Resource_movementHistoryView?%s' % (resource.absolute_url(),
make_query(variation_text=self.variation_text, selection_name=selection_name, selection_index=selection_index,
simulation_state=current_inventory_state_list))
else: else:
resource = self.portal_categories.unrestrictedTraverse(self.resource_relative_url) resource = self.portal_categories.unrestrictedTraverse(self.resource_relative_url)
return '%s/Resource_movementHistoryView?%s' % (resource.absolute_url(), return '%s/Resource_movementHistoryView?%s' % (resource.absolute_url(),
......
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