From 33da283c7662b00baebcfc92edeab83ed1edfb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 29 May 2008 07:33:20 +0000 Subject: [PATCH] change Movement.getTotalPrice to returns 0.0 by default. Delivery and Order's getTotalPrice usually sum getTotalPrice for the enclosed movements, so it's better not to return None. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21207 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Movement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py index 60046bf5cd..e42ed4c5e3 100644 --- a/product/ERP5/Document/Movement.py +++ b/product/ERP5/Document/Movement.py @@ -280,7 +280,7 @@ class Movement(XMLObject, Amount): security.declareProtected( Permissions.AccessContentsInformation, 'getTotalPrice') - def getTotalPrice(self, default=None, context=None, REQUEST=None, fast=None, + def getTotalPrice(self, default=0.0, context=None, REQUEST=None, fast=None, **kw): """Return the total price in the context. -- 2.30.9