From 863825c0846cd1ec495602be488d4fc2831c6581 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Thu, 26 Apr 2007 15:45:44 +0000
Subject: [PATCH] Do not just find 'finishIngestion' script but also call it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14246 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Document.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py
index 43a0ba70eb..8eb8d22c93 100644
--- a/product/ERP5/Document/Document.py
+++ b/product/ERP5/Document/Document.py
@@ -1012,8 +1012,8 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
       script can for example allocate a reference number automatically if
       no reference was defined.
     """
-    return self._getTypeBasedMethod('finishIngestion',
-        fallback_script_id='Document_finishIngestion')
+    method = self._getTypeBasedMethod('finishIngestion', fallback_script_id='Document_finishIngestion')
+    return method()
 
   # Conversion methods
   security.declareProtected(Permissions.ModifyPortalContent, 'convert')
-- 
2.30.9