Commit 2b084cbd authored by Jérome Perrin's avatar Jérome Perrin

base: do not blindly propagate **kw to catalog while looking up currency price

parent de4891d7
......@@ -78,6 +78,11 @@ else:\n
if validation_state is None:\n
validation_state = \'validated\'\n
kw.setdefault(\'portal_type\', \'Currency Exchange Line\')\n
\n
# discard `categories` that might have been passed by Movement_getPriceCalculationOperandDict\n
# and that searchPredicateList does not accept.\n
kw.pop(\'categories\', None)\n
\n
predicate_list = context.portal_domains.searchPredicateList(\n
context=movement,\n
validation_state=validation_state,\n
......
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