Commit d34e2dab authored by Sebastien Robin's avatar Sebastien Robin

specify the tag for reindex in the activate_kw parameter in BankingOperationLine_index

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13694 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent acb52c7c
...@@ -67,11 +67,8 @@ ...@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Expression" module="Products.CMFCore.Expression"/>
<string>Products.CMFCore.Expression</string> <tuple/>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -67,11 +67,8 @@ ...@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Expression" module="Products.CMFCore.Expression"/>
<string>Products.CMFCore.Expression</string> <tuple/>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -67,11 +67,8 @@ ...@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Expression" module="Products.CMFCore.Expression"/>
<string>Products.CMFCore.Expression</string> <tuple/>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -67,11 +67,8 @@ ...@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Expression" module="Products.CMFCore.Expression"/>
<string>Products.CMFCore.Expression</string> <tuple/>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -67,11 +67,8 @@ ...@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Expression" module="Products.CMFCore.Expression"/>
<string>Products.CMFCore.Expression</string> <tuple/>
<string>Expression</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -66,10 +66,13 @@ ...@@ -66,10 +66,13 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># Reindex the given line with a tag so it can be found in the message table.\n <value> <string># Reindex the given line with a tag so it can be found in the message table.\n
activate_kw = {}\n
if source:\n if source:\n
line.reindexObject(tag=context.BankAccount_getMessageTag(line.getSourcePaymentValue()))\n activate_kw[\'tag\'] = context.BankAccount_getMessageTag(line.getSourcePaymentValue())\n
line.reindexObject(activate_kw=activate_kw)\n
else:\n else:\n
line.reindexObject(tag=context.BankAccount_getMessageTag(line.getDestinationPaymentValue()))\n activate_kw[\'tag\'] = context.BankAccount_getMessageTag(line.getDestinationPaymentValue())\n
line.reindexObject(activate_kw=activate_kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -120,8 +123,10 @@ else:\n ...@@ -120,8 +123,10 @@ else:\n
<tuple> <tuple>
<string>line</string> <string>line</string>
<string>source</string> <string>source</string>
<string>activate_kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>_write_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
175 177
\ No newline at end of file \ No newline at end of file
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