From 3e88895f4886ed720f336ea94948c7e2abc15676 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 6 Feb 2013 10:42:33 +0100
Subject: [PATCH] explain why Delivery.getTotalNetPrice is deprecated

---
 product/ERP5/Document/Delivery.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py
index 144e53d3f2..1afbe4aeb4 100644
--- a/product/ERP5/Document/Delivery.py
+++ b/product/ERP5/Document/Delivery.py
@@ -181,7 +181,11 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin,
                               'getTotalNetPrice')
     def getTotalNetPrice(self, fast=0, src__=0, **kw):
       """
-        Same as getTotalPrice, but including Tax and Discount.
+        Same as getTotalPrice, but including Tax and Discount (from legacy
+        simulation).
+
+        This method is deprecated because it uses deprecated Tax & Discount
+        portal types. You should use getTotalPrice(base_contribution=) instead.
       """
       total_price = self.getTotalPrice(fast=fast, src__=src__, **kw)
       kw['portal_type'] = self.getPortalTaxMovementTypeList()
-- 
2.30.9