Commit b1e3bcab authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: call OpenSaleOrder_reindexIfIndexedBeforeLine on an Open...

slapos_accounting: call OpenSaleOrder_reindexIfIndexedBeforeLine on an Open Order, instead of the Alarm
parent 5c4f5ce2
portal = context.getPortalObject() portal = context.getPortalObject()
for line in portal.ERP5Site_zGetOpenOrderWithModifiedLineUid(): for line in portal.ERP5Site_zGetOpenOrderWithModifiedLineUid():
context.activate(activity="SQLQueue",tag=tag).OpenSaleOrder_reindexIfIndexedBeforeLine(uid=line.uid) portal.restrictedTraverse(line.path).activate(activity="SQLQueue",tag=tag).OpenSaleOrder_reindexIfIndexedBeforeLine()
context.activate(after_tag=tag).getId() context.activate(after_tag=tag).getId()
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</item> </item>
<item> <item>
<key> <string>width</string> </key> <key> <string>width</string> </key>
<value> <int>43</int> </value> <value> <int>42</int> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
......
...@@ -2,10 +2,8 @@ from zExceptions import Unauthorized ...@@ -2,10 +2,8 @@ from zExceptions import Unauthorized
if REQUEST is not None: if REQUEST is not None:
raise Unauthorized raise Unauthorized
if uid is None:
uid = context.getUid()
portal = context.getPortalObject() portal = context.getPortalObject()
uid = context.getUid()
order = portal.portal_catalog( order = portal.portal_catalog(
uid=uid, uid=uid,
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>uid=None, REQUEST=None</string> </value> <value> <string>REQUEST=None</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment