Commit b727789a authored by Vincent Pelletier's avatar Vincent Pelletier

Revert "Provide uids instead of relative_url/path for catalog lookups."

This reverts commit 3f8b6a39.
Also revert "fix a typo. potral -> portal."
(commit fa7113c9)

*_path parameters are preferred at SimulationTool level over UIDs, and
may not work as intended.
parent db9f7d32
......@@ -59,7 +59,7 @@ search_kw = dict(\n
section_uid=context.getSourceSectionUid(),\n
payment_uid=context.getSourcePaymentUid(),\n
resource_uid=context.getPriceCurrencyUid(),\n
node_category_uid=portal.portal_categories.account_type.asset.cash.bank.getUid(),\n
node_category=\'account_type/asset/cash/bank\',\n
# group_by=(\'parent_uid\', ), # The limit is not applied on the number of payment transactions, but on the number of lines (to simplify setting aggregate relation).\n
\n
# we have \'aggregate/payment_transaction_module/xxx\' in sub_variation_text if the line is already grouped.\n
......
......@@ -56,7 +56,7 @@ search_kw = dict(\n
parent_portal_type=\'Payment Transaction\',\n
section_uid=context.getSourceSectionUid(),\n
default_aggregate_uid=context.getUid(),\n
node_category_uid=portal.portal_categories.account_type.asset.cash.bank.getUid(),\n
node_category=\'account_type/asset/cash/bank\',\n
)\n
\n
return portal.portal_simulation.getMovementHistoryList(**search_kw)\n
......
......@@ -57,7 +57,7 @@ search_kw = dict(\n
parent_portal_type=\'Payment Transaction\',\n
section_uid=context.getSourceSectionUid(),\n
default_aggregate_uid=context.getUid(),\n
node_category_uid=portal.portal_categories.account_type.asset.cash.bank.getUid(),\n
node_category=\'account_type/asset/cash/bank\',\n
)\n
\n
return Object(total_quantity=portal.portal_simulation.getInventory(**search_kw)),\n
......
29
\ No newline at end of file
27
\ No newline at end of file
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