Amit Dodiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-16655-ado into
lp:openobject-addons/6.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
Priyesh (OpenERP) (pso-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-16655-ado/+merge/70698
Hello Sir,
[FIX]:UnboundLocalError for Tax case:(16655)
I have added amount = 0.0 in tax calculation because in Tax form if you select
Tax type = None and Check the "Tax included in Price" checkbox in it's causing
UnboundLocalError: local variable 'amount' referenced before assignment error.
Thanks,
Amit
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-16655-ado/+merge/70698
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-16655-ado.
=== modified file 'account/account.py'
--- account/account.py 2011-08-02 12:32:40 +0000
+++ account/account.py 2011-08-08 07:11:38 +0000
@@ -2003,6 +2003,7 @@
cur_price_unit -= tax.amount
for tax in taxes:
+ amount = 0.0
if tax.type=='percent':
if tax.include_base_amount:
amount = cur_price_unit - (cur_price_unit / (1 + tax.amount))
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp