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()
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()
......@@ -43,7 +43,7 @@
</item>
<item>
<key> <string>width</string> </key>
<value> <int>43</int> </value>
<value> <int>42</int> </value>
</item>
</dictionary>
</list>
......
......@@ -2,10 +2,8 @@ from zExceptions import Unauthorized
if REQUEST is not None:
raise Unauthorized
if uid is None:
uid = context.getUid()
portal = context.getPortalObject()
uid = context.getUid()
order = portal.portal_catalog(
uid=uid,
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>uid=None, REQUEST=None</string> </value>
<value> <string>REQUEST=None</string> </value>
</item>
<item>
<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