Commit 9554a620 authored by Julien Muchembled's avatar Julien Muchembled

Fix compatibility code for TradeCondition.getAggregatedAmountList

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@34857 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d77a813
......@@ -116,6 +116,10 @@ class TradeCondition(MappedValue, AmountGeneratorMixin, VariatedMixin):
warnings.warn("The API of getAggregatedAmountList has changed:"
" it must be called on the context instead of passing"
" the context as first parameter", DeprecationWarning)
# XXX add a 'trade_amount_generator' group type
kw['amount_generator_type_list'] = ('Purchase Trade Condition',
'Sale Trade Condition',
'Trade Model Line')
return context.getAggregatedAmountList(*args, **kw)
#deprecated # XXX
......
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