Commit 8a9270dc authored by Jérome Perrin's avatar Jérome Perrin

Pass both selection and selection_name to ERP5Accounting_getParams; the script

will decide which one to use (depending on which version of Products code you
have, either selection or selection_name should be None).



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13571 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5341c5e6
......@@ -83,7 +83,8 @@ if not id:\n
kwd[\'select_expression\'] = "\'%s\' AS accounting_transaction_line_currency" % id\n
\n
# precision for editable fields\n
params = context.ERP5Accounting_getParams(selection_name)\n
params = context.ERP5Accounting_getParams(selection_name=selection_name,\n
selection=selection)\n
if params.get(\'precision\', None) is not None:\n
context.REQUEST.set(\'precision\', params[\'precision\'])\n
\n
......
......@@ -68,7 +68,8 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>kwd = context.ERP5Accounting_getParams(selection_name)\n
<value> <string>kwd = context.ERP5Accounting_getParams(selection_name=selection_name,\n
selection=selection)\n
\n
# XXX missing :(\n
# this may fail if we have movements on something else than accounts\n
......
......@@ -69,7 +69,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
params = portal.ERP5Accounting_getParams(selection_name)\n
params = portal.ERP5Accounting_getParams(selection_name=selection_name,\n
selection=selection)\n
params[\'omit_input\'] = omit_input\n
params[\'omit_output\'] = omit_output\n
\n
......
......@@ -69,7 +69,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
params = portal.ERP5Accounting_getParams(selection_name)\n
params = portal.ERP5Accounting_getParams(selection_name=selection_name,\n
selection=selection)\n
selection_params = context.portal_selections.getSelectionParamsFor(selection_name)\n
\n
params[\'omit_input\'] = omit_input\n
......
......@@ -72,7 +72,8 @@
from Products.ERP5Type.Message import Message\n
portal = context.getPortalObject()\n
params = portal.ERP5Accounting_getParams(selection_name)\n
params = portal.ERP5Accounting_getParams(selection_name=selection_name,\n
selection=selection)\n
N_ = lambda msg: Message(\'erp5_ui\', msg)\n
\n
if params.get(\'precision\', None) is not None:\n
......
......@@ -69,7 +69,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
params = portal.ERP5Accounting_getParams(selection_name)\n
params = portal.ERP5Accounting_getParams(selection_name=selection_name,\n
selection=selection)\n
\n
if kw.get(\'node_uid\'):\n
params[\'node_uid\'] = kw[\'node_uid\']\n
......
218
\ No newline at end of file
219
\ 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