Commit 5fa49415 authored by Jérome Perrin's avatar Jérome Perrin

accounting: fix URL columns in transaction tabs

parent d27a2fa0
No related merge requests found
......@@ -62,6 +62,14 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -70,16 +78,44 @@
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>url_columns</string> </key>
<value>
......@@ -312,7 +348,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: getattr(cell, \'is_previous_balance\', False) and [(x[0], None) for x in form.listbox.get_value(\'columns\')]</string> </value>
<value> <string>python: [(x[0], \'Movement_getExplanationUrl\') for x in form.listbox.get_value(\'columns\')]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -50,12 +50,18 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return "%s/view" % brain.getObject().getExplanation()\n
<value> <string>from ZTUtils import make_query\n
if selection and selection_name:\n
return "%s?%s" % (brain.getObject().getExplanationValue().absolute_url(),\n
make_query(selection_index=selection.getIndex(),\n
selection_name=selection_name))\n
\n
return brain.getObject().getExplanation()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain, selection=None, **kwd</string> </value>
<value> <string>brain, selection=None, selection_name=None, **kwd</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -220,7 +220,8 @@ if from_date or is_pl_account:\n
Movement_getExplanationReference=\'\',\n
Movement_getMirrorSectionTitle=\'\',\n
Movement_getNodeGapId=\'\',\n
Movement_getExplanationUrl=lambda **kw: \'\',\n
getListItemUrl=lambda *args,**kw: None,\n
Movement_getExplanationUrl=lambda **kw:None,\n
Movement_getFundingTitle=lambda: \'\',\n
Movement_getFunctionTitle=lambda: \'\',\n
Movement_getProjectTitle=lambda: \'\',\n
......
1566
\ No newline at end of file
1567
\ 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