From 421a8b8277ee2c1e14d7f187c7d1a57a21d6af1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Mon, 2 Aug 2010 15:11:16 +0000 Subject: [PATCH] default payment term to 0 to avoid error when adding to a datetime object git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37408 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessProcess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/BusinessProcess.py b/product/ERP5/Document/BusinessProcess.py index 46068ac36d..9a66542c28 100644 --- a/product/ERP5/Document/BusinessProcess.py +++ b/product/ERP5/Document/BusinessProcess.py @@ -191,7 +191,7 @@ class BusinessProcess(Path, XMLObject): reference_date = explanation_cache.getReferenceDate(self, trade_date, reference_date_method_id) # Computer start_date and stop_date (XXX-JPS this could be cached and accelerated) - start_date = reference_date + trade_model_path.getPaymentTerm() # XXX-JPS Until better naming + start_date = reference_date + trade_model_path.getPaymentTerm(0) # XXX-JPS Until better naming if delay_mode == 'min': delay = trade_model_path.getMinDelay() elif delay_mode == 'max': -- 2.30.9