Commit 893b931f authored by Jérome Perrin's avatar Jérome Perrin

The previous change in Base_zGetNotGroupedMovementList had a side-effect,...

The previous change in Base_zGetNotGroupedMovementList had a side-effect, portal_type parameter must always be passed, otherwise DTML will get it from the context using getattr, and you will always get in the acqusition chain an object with "portal_type" argument.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29132 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 443a3006
...@@ -81,6 +81,7 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n ...@@ -81,6 +81,7 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n
at_date=from_date - 1, # this is not to_date\n at_date=from_date - 1, # this is not to_date\n
simulation_state=params[\'simulation_state\'],\n simulation_state=params[\'simulation_state\'],\n
node_uid=[kw[\'node_uid\']],\n node_uid=[kw[\'node_uid\']],\n
portal_type=portal.getPortalAccountingMovementTypeList(),\n
section_uid=params[\'section_uid\']):\n section_uid=params[\'section_uid\']):\n
\n \n
# manually filter out not interesting lines\n # manually filter out not interesting lines\n
......
...@@ -181,11 +181,9 @@ Here, a group of movement means:\n ...@@ -181,11 +181,9 @@ Here, a group of movement means:\n
<dtml-sqlvar sequence-item type="string">\n <dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n
</dtml-if>\n </dtml-if>\n
<dtml-if portal_type>\n
stock.portal_type in (<dtml-in portal_type>\n stock.portal_type in (<dtml-in portal_type>\n
<dtml-sqlvar sequence-item type="string">\n <dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n
</dtml-if>\n
<dtml-if section_uid>\n <dtml-if section_uid>\n
stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n
...@@ -213,11 +211,9 @@ Here, a group of movement means:\n ...@@ -213,11 +211,9 @@ Here, a group of movement means:\n
<dtml-sqlvar sequence-item type="string">\n <dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n
</dtml-if>\n </dtml-if>\n
<dtml-if portal_type>\n
stock.portal_type in (<dtml-in portal_type>\n stock.portal_type in (<dtml-in portal_type>\n
<dtml-sqlvar sequence-item type="string">\n <dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n
</dtml-if>\n
<dtml-if section_uid>\n <dtml-if section_uid>\n
stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n
...@@ -235,9 +231,7 @@ Here, a group of movement means:\n ...@@ -235,9 +231,7 @@ Here, a group of movement means:\n
HAVING max(stock_2.date) > <dtml-sqlvar "at_date" type="datetime">\n HAVING max(stock_2.date) > <dtml-sqlvar "at_date" type="datetime">\n
)\n )\n
\n \n
ORDER BY mirror_section_title, date\n ORDER BY mirror_section_title, date
\n
]]></string> </value> ]]></string> </value>
</item> </item>
...@@ -305,11 +299,9 @@ Here, a group of movement means:\n ...@@ -305,11 +299,9 @@ Here, a group of movement means:\n
<dtml-sqlvar sequence-item type="string">\n <dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n
</dtml-if>\n </dtml-if>\n
<dtml-if portal_type>\n
stock.portal_type in (<dtml-in portal_type>\n stock.portal_type in (<dtml-in portal_type>\n
<dtml-sqlvar sequence-item type="string">\n <dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n
</dtml-if>\n
<dtml-if section_uid>\n <dtml-if section_uid>\n
stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n
...@@ -337,11 +329,9 @@ Here, a group of movement means:\n ...@@ -337,11 +329,9 @@ Here, a group of movement means:\n
<dtml-sqlvar sequence-item type="string">\n <dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n
</dtml-if>\n </dtml-if>\n
<dtml-if portal_type>\n
stock.portal_type in (<dtml-in portal_type>\n stock.portal_type in (<dtml-in portal_type>\n
<dtml-sqlvar sequence-item type="string">\n <dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n
</dtml-if>\n
<dtml-if section_uid>\n <dtml-if section_uid>\n
stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n <dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n
...@@ -359,9 +349,7 @@ Here, a group of movement means:\n ...@@ -359,9 +349,7 @@ Here, a group of movement means:\n
HAVING max(stock_2.date) > <dtml-sqlvar "at_date" type="datetime">\n HAVING max(stock_2.date) > <dtml-sqlvar "at_date" type="datetime">\n
)\n )\n
\n \n
ORDER BY mirror_section_title, date\n ORDER BY mirror_section_title, date
\n
]]></string> </value> ]]></string> </value>
</item> </item>
......
968 970
\ 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