diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index e66ae871372faf9ec2de63b18a01873a49859937..87bd78889be708357477bd79e5566a24b02a86b0 100644 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -132,7 +132,7 @@ class Delivery(XMLObject, ImmobilisationDelivery): return self.Delivery_zGetTotal(src__=1, **kw) aggregate = self.Delivery_zGetTotal(**kw)[0] result = aggregate.total_price or 0 - method = self._getTypeBasedMethod('getTotalPrice') + method = self._getTypeBasedMethod('convertTotalPrice') if method is not None: return method(result) return result diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py index 1529ffa047b64a757172dd6ba106604dcae83c6d..d5d156fcedfd749ce63e4e5dfbcc84ed54398a61 100644 --- a/product/ERP5/Document/Movement.py +++ b/product/ERP5/Document/Movement.py @@ -307,7 +307,7 @@ class Movement(XMLObject, Amount): tmp_context = self.asContext(context=context, REQUEST=REQUEST, **kw) result = self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw) - method = self._getTypeBasedMethod('getTotalPrice') + method = self._getTypeBasedMethod('convertTotalPrice') if method is None: return result return method(result)