Commit 4daff2e2 authored by Mame Coumba Sall's avatar Mame Coumba Sall

2008-11-12 mame

* modify script to force update of the tax line price

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24559 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96a19421
...@@ -161,6 +161,9 @@ def initialiseTaxLineList(order, trade_condition):\n ...@@ -161,6 +161,9 @@ def initialiseTaxLineList(order, trade_condition):\n
# recurse on other trade conditions\n # recurse on other trade conditions\n
for specialised_trade_condition in trade_condition.getSpecialiseValueList():\n for specialised_trade_condition in trade_condition.getSpecialiseValueList():\n
initialiseTaxLineList(order, specialised_trade_condition)\n initialiseTaxLineList(order, specialised_trade_condition)\n
if force:\n
context.manage_delObjects([x.getId() for x in context.contentValues(\n
portal_type=(\'Discount Line\', \'Tax Line\'))])\n
\n \n
if not len(context.contentValues(portal_type=(\'Discount Line\', \'Tax Line\'))):\n if not len(context.contentValues(portal_type=(\'Discount Line\', \'Tax Line\'))):\n
initialiseTaxLineList(context, trade_condition)\n initialiseTaxLineList(context, trade_condition)\n
...@@ -229,6 +232,9 @@ order.edit(**new_category_dict)\n ...@@ -229,6 +232,9 @@ order.edit(**new_category_dict)\n
<string>len</string> <string>len</string>
<string>initialiseDiscountLineList</string> <string>initialiseDiscountLineList</string>
<string>initialiseTaxLineList</string> <string>initialiseTaxLineList</string>
<string>append</string>
<string>$append0</string>
<string>x</string>
<string>_apply_</string> <string>_apply_</string>
</tuple> </tuple>
</value> </value>
......
524 526
\ 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