<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
Thanks Jerome for your prompt response,<BR>
<BR>
I have managed to proceed further but got stuck just a few steps later.<BR>
<BR>
When the DeliveryBuilder is trying to create the packing list, I encounter the following error:<BR>
<BR>
PROBLEM(100) ActivityTool Could not call method build on object ('', 'erp5_trade', 'portal_deliveries', 'packing_list_builder')<BR>
Traceback (most recent call last):<BR>
&nbsp; File &quot;/var/lib/zope/Products/CMFActivity/ActivityTool.py&quot;, line 177, in __call__<BR>
&nbsp;&nbsp;&nbsp; result = getattr(obj, self.method_id)(*self.args, **self.kw)<BR>
&nbsp; File &quot;/var/lib/zope/Products/ERP5/Document/OrderBuilder.py&quot;, line 113, in build<BR>
&nbsp;&nbsp;&nbsp; movement_list = self.searchMovementList(<BR>
&nbsp; File &quot;/var/lib/zope/Products/ERP5/Document/DeliveryBuilder.py&quot;, line 128, in searchMovementList<BR>
&nbsp;&nbsp;&nbsp; select_method = getattr(self.getPortalObject(), self.simulation_select_method_id)<BR>
AttributeError: Order_selectMovement<BR>
<BR>
even though the method Order_selectMovement exists.<BR>
<BR>
I noticed that as per revision 6973, this functionality has been modified 'to cut the acquisition chain' but I am unsure if that could be a reason of this error.<BR>
<BR>
Could this too be due to the fact that I am logged in as a user from /acl_users and not /erp5/acl_users?<BR>
<BR>
Regards,<BR>
-SB<BR>
<BR>
On Fri, 2006-05-12 at 12:42 +0000, J&#233;r&#244;me Perrin wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Le Vendredi 12 Mai 2006 12:07, Shrenik Bhura a &#233;crit&nbsp;:</FONT>
<FONT COLOR="#000000">&gt; Hi!</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; I am trying to implement the ERP5 Trade as per the instructions in the</FONT>
<FONT COLOR="#000000">&gt; howto on the ERP5 LiveCD rc9 without the updated products from svn.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; When I reach the &quot;Change the state of order 000001&quot; step, no applied</FONT>
<FONT COLOR="#000000">&gt; rule is created, nor any object in portal_simulation and the the log</FONT>
<FONT COLOR="#000000">&gt; returns the following error:</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; 2006-05-12T13:57:34 INFO(0) WARNING ActivityTool Could not call method</FONT>
<FONT COLOR="#000000">&gt;   File &quot;/usr/lib/zope/lib/python/AccessControl/Owned.py&quot;, line 284, in</FONT>
<FONT COLOR="#000000">&gt; ownerInfo</FONT>
<FONT COLOR="#000000">&gt;     db=user.aq_inner.aq_parent</FONT>
<FONT COLOR="#000000">&gt; AttributeError: aq_inner</FONT>

<FONT COLOR="#000000">Hi shrenik</FONT>

<FONT COLOR="#000000">When invoking an active message, CMFActivity get the user *in the portal*, but </FONT>
<FONT COLOR="#000000">your user might came from a parent acl_users (ie from /acl_users, </FONT>
<FONT COLOR="#000000">not /erp5/acl_users). In that case, ActivityTool cannot change the security </FONT>
<FONT COLOR="#000000">manager, and keeps original security manager (the user from the </FONT>
<FONT COLOR="#000000">zope_tic_loop, or &quot;nothing&quot; in case you use TimerService, which creates the </FONT>
<FONT COLOR="#000000">problem you describe). </FONT>

<FONT COLOR="#000000">This is fixed in svn, but this problem affected livecd 10.rc9 Products.</FONT>
<FONT COLOR="#000000">Here's the patch:</FONT>
<FONT COLOR="#000000"><A HREF="https://svn.erp5.org/erp5/trunk/products/CMFActivity/ActivityTool.py?r1=5768&r2=5969">https://svn.erp5.org/erp5/trunk/products/CMFActivity/ActivityTool.py?r1=5768&amp;r2=5969</A></FONT>

<FONT COLOR="#000000">&gt; and upon 'google'ing I found a problem/solution pair here:</FONT>
<FONT COLOR="#000000">&gt; <A HREF="http://mail.zope.org/pipermail/zope/2002-February/109619.html">http://mail.zope.org/pipermail/zope/2002-February/109619.html</A></FONT>

<FONT COLOR="#000000">This is already done in ActivityTool.</FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>