Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-improvement_in_Account_Voucher-ado into 
lp:openobject-addons/6.0.

Requested reviews:
  Priyesh (OpenERP) (pso-openerp)
  Jay Vora (OpenERP) (jvo-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-improvement_in_Account_Voucher-ado/+merge/69064

Hello Sir,

I have improve the code of Account_Voucher for fix the TypeError: unsupported 
operand type(s) for /: 'float' and 'NoneType' Error.

Thanks,
Amit.

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-improvement_in_Account_Voucher-ado/+merge/69064
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-improvement_in_Account_Voucher-ado.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py	2011-05-20 10:29:05 +0000
+++ account_voucher/account_voucher.py	2011-07-25 10:38:12 +0000
@@ -756,7 +756,7 @@
                     rec_ids = [voucher_line, line.move_line_id.id]
                     rec_list_ids.append(rec_ids)
 
-            if not currency_pool.is_zero(cr, uid, inv.currency_id, line_total):
+            if current_currency or inv.journal_id.currency.id or company_currency and not currency_pool.is_zero(cr, uid, inv.currency_id, line_total):
                 diff = line_total
                 account_id = False
                 if inv.payment_option == 'with_writeoff':

_______________________________________________
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

Reply via email to