Commit 7e4dcf6b authored by Jérome Perrin's avatar Jérome Perrin

Change InvoiceTransactionRule_asCellRange to use the IDs and not relative_url,...

Change InvoiceTransactionRule_asCellRange to use the IDs and not relative_url, because after a copy & paste, matrix range was not applicable (relative_url contains the full path of the object). This will require manual migration of existing documents.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20475 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3a5e8c4b
...@@ -91,12 +91,12 @@ dimension_ids_list = []\n ...@@ -91,12 +91,12 @@ dimension_ids_list = []\n
if matrixbox:\n if matrixbox:\n
for dimension_result in dimension_result_list:\n for dimension_result in dimension_result_list:\n
dimension_ids_list.append(\n dimension_ids_list.append(\n
[(x.getObject().getRelativeUrl(),\n [(x.getObject().getId(),\n
x.getObject().getTitle()) for x in dimension_result])\n x.getObject().getTitle()) for x in dimension_result])\n
else :\n else :\n
for dimension_result in dimension_result_list :\n for dimension_result in dimension_result_list :\n
dimension_ids_list.append(\n dimension_ids_list.append(\n
[x.getObject().getRelativeUrl() for x in dimension_result])\n [x.getObject().getId() for x in dimension_result])\n
\n \n
return dimension_ids_list\n return dimension_ids_list\n
# vim: syntax=python\n # vim: syntax=python\n
......
48 49
\ 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