Hardik Ansodariya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-576606-han into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576606-han/+merge/115314
Hello,
Fix the issue;
When pass a value as None It was throwing error below
unsupported operand type(s) for /: 'NoneType' and 'float'
Steps to reproduce:
* menu "Accounting / Periodical Processing / End of Period / Generate Opening
Entries"
* fields:
- Fiscal Year to close: 2012
- New Fiscal Year: 2013
- Opening Entries Journal: Opening Entries Journal (EUR)
- Opening Entries Period: Opening Period 2013
* button: create
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576606-han/+merge/115314
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-576606-han.
=== modified file 'account/account.py'
--- account/account.py 2012-07-04 16:33:07 +0000
+++ account/account.py 2012-07-17 11:03:21 +0000
@@ -1517,7 +1517,7 @@
cr.execute('update account_move_line set '+mode2+'=%s where id=%s', (result, line_id))
#adjust also the amount in currency if needed
- cr.execute("select currency_id, sum(amount_currency) as amount_currency from account_move_line where move_id = %s and currency_id is not null group by currency_id", (move.id,))
+ cr.execute("select currency_id, coalesce(sum(amount_currency), 0.0) as amount_currency from account_move_line where move_id = %s and currency_id is not null group by currency_id", (move.id,))
for row in cr.dictfetchall():
currency_id = currency_obj.browse(cr, uid, row['currency_id'], context=context)
if not currency_obj.is_zero(cr, uid, currency_id, row['amount_currency']):
_______________________________________________
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