Commit 3f8b6a39 authored by Vincent Pelletier's avatar Vincent Pelletier

Provide uids instead of relative_url/path for catalog lookups.

parent 19ef6333
...@@ -59,7 +59,7 @@ search_kw = dict(\n ...@@ -59,7 +59,7 @@ search_kw = dict(\n
section_uid=context.getSourceSectionUid(),\n section_uid=context.getSourceSectionUid(),\n
payment_uid=context.getSourcePaymentUid(),\n payment_uid=context.getSourcePaymentUid(),\n
resource_uid=context.getPriceCurrencyUid(),\n resource_uid=context.getPriceCurrencyUid(),\n
node_category=\'account_type/asset/cash/bank\',\n node_category_uid=portal.potral_categories.account_type.asset.cash.bank.getUid(),\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 # 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 \n
# we have \'aggregate/payment_transaction_module/xxx\' in sub_variation_text if the line is already grouped.\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 ...@@ -56,7 +56,7 @@ search_kw = dict(\n
parent_portal_type=\'Payment Transaction\',\n parent_portal_type=\'Payment Transaction\',\n
section_uid=context.getSourceSectionUid(),\n section_uid=context.getSourceSectionUid(),\n
default_aggregate_uid=context.getUid(),\n default_aggregate_uid=context.getUid(),\n
node_category=\'account_type/asset/cash/bank\',\n node_category_uid=portal.portal_categories.account_type.asset.cash.bank.getUid(),\n
)\n )\n
\n \n
return portal.portal_simulation.getMovementHistoryList(**search_kw)\n return portal.portal_simulation.getMovementHistoryList(**search_kw)\n
......
...@@ -57,7 +57,7 @@ search_kw = dict(\n ...@@ -57,7 +57,7 @@ search_kw = dict(\n
parent_portal_type=\'Payment Transaction\',\n parent_portal_type=\'Payment Transaction\',\n
section_uid=context.getSourceSectionUid(),\n section_uid=context.getSourceSectionUid(),\n
default_aggregate_uid=context.getUid(),\n default_aggregate_uid=context.getUid(),\n
node_category=\'account_type/asset/cash/bank\',\n node_category_uid=portal.portal_categories.account_type.asset.cash.bank.getUid(),\n
)\n )\n
\n \n
return Object(total_quantity=portal.portal_simulation.getInventory(**search_kw)),\n return Object(total_quantity=portal.portal_simulation.getInventory(**search_kw)),\n
......
27 28
\ No newline at end of file \ 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