diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py index 90da45eec3a4e9fd406e7cc118343f7145be41fb..bd239ae1bc2bbd759ee4767af334b40ba5bc3873 100644 --- a/product/ERP5/Document/Movement.py +++ b/product/ERP5/Document/Movement.py @@ -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: