From 0725665f1e6c9447edb71ec5b2d9f2066b79289a Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Mon, 26 Jan 2009 10:45:32 +0000 Subject: [PATCH] Changed the type based method name. This type based method is not a getter, but a converter. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25307 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Delivery.py | 2 +- product/ERP5/Document/Movement.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index e66ae87137..87bd78889b 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 1529ffa047..d5d156fced 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) -- 2.30.9