Commit 4348c4b4 authored by Jérome Perrin's avatar Jérome Perrin

SaleOrder_applySaleTradeCondition: Don't try to set a received date if the accessor is not present

bump to version 5.0

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20668 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9f911929
......@@ -104,7 +104,7 @@ else :\n
\n
order.Order_applyTradeCondition(trade_condition, force=force)\n
# set date\n
if order.getReceivedDate() is None:\n
if hasattr(order, \'getReceivedDate\') and order.getReceivedDate() is None:\n
context.setReceivedDate(DateTime())\n
\n
redirect_url = \'%s/%s?%s\' % (context.absolute_url(), form_id,\n
......@@ -176,6 +176,7 @@ context.REQUEST[ \'RESPONSE\' ].redirect( redirect_url.replace(\' \', \'+\') )\n
<string>_inplacevar_</string>
<string>redirect_url</string>
<string>trade_condition</string>
<string>hasattr</string>
</tuple>
</value>
</item>
......
2008-04-18 jerome
* Bump to version 5.0
2008-04-17 jerome
* Add new discount system, similar to new tax system.
......
323
\ No newline at end of file
325
\ No newline at end of file
1.0rc17
\ No newline at end of file
5.0
\ 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