Commit 2ec7c1f7 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Explicitly try to get Movement_getPriceCalculationOperandDict, because...

Explicitly try to get Movement_getPriceCalculationOperandDict, because Movement is used as a base class.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15376 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent df73e8f2
......@@ -232,6 +232,11 @@ class Movement(XMLObject, Amount):
if context is None:
context = self
method = context._getTypeBasedMethod('getPriceCalculationOperandDict')
if method is None:
# Try this, because when the context is an instance of a derived
# class of Movement, Movement_getPriceCalculationOperandDict is
# not searched.
method = getattr(context, 'Movement_getPriceCalculationOperandDict', None)
if method is not None:
operand_dict = method(**kw)
if operand_dict is None:
......
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