[Erp5-report] r12641 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 13 10:40:20 CET 2007


Author: ivan
Date: Tue Feb 13 10:40:05 2007
New Revision: 12641

URL: http://svn.erp5.org?rev=12641&view=rev
Log:
Do not reset Person object reference when installing from business template (Bug #561)

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=12641&r1=12640&r2=12641&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Tue Feb 13 10:40:05 2007
@@ -652,6 +652,9 @@
           obj = obj._getCopy(container)
           container._setObject(object_id, obj)
           obj = container._getOb(object_id)
+          # mark a business template installation so in 'PortalType_afterClone' scripts  
+          # we can implement logical for reseting or not attributes (i.e reference). 
+          self.REQUEST.set('is_business_template_installation', 1)
           obj.manage_afterClone(obj)
           obj.wl_clearLocks()
           # if portal types upgrade, set backup properties




More information about the Erp5-report mailing list