Commit 742dcf86 authored by Jérome Perrin's avatar Jérome Perrin

convert back brain.date to the original date's timezone

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24567 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7dcdb461
......@@ -118,6 +118,10 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n
credit = max(-brain.total_price, 0)\n
total_credit += credit\n
\n
brain_date = brain.date\n
if mvt.getStartDate():\n
brain_date = brain_date.toZone(mvt.getStartDate())\n
\n
line_list.append(\n
Object(uid=\'new_000\',\n
total_price=brain.total_price,\n
......@@ -208,6 +212,7 @@ return line_list\n
<string>debit</string>
<string>_inplacevar_</string>
<string>credit</string>
<string>brain_date</string>
</tuple>
</value>
</item>
......
805
\ No newline at end of file
806
\ 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