Jay Vora (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-account_payment-rha into
lp:openobject-addons/6.0.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-account_payment-rha/+merge/61122
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-account_payment-rha/+merge/61122
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-account_payment-rha.
=== modified file 'account_payment/wizard/account_payment_populate_statement.py'
--- account_payment/wizard/account_payment_populate_statement.py 2011-01-14 00:11:01 +0000
+++ account_payment/wizard/account_payment_populate_statement.py 2011-05-16 13:54:24 +0000
@@ -75,8 +75,10 @@
amount = currency_obj.compute(cr, uid, line.currency.id,
statement.currency.id, line.amount_currency, context=ctx)
- context.update({'move_line_ids': [line.move_line_id.id]})
- result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, price=abs(amount), currency_id= statement.currency.id, ttype='payment', context=context)
+ if line.move_line_id.id:
+ context.update({'move_line_ids': [line.move_line_id.id]})
+
+ result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, price=abs(amount), currency_id= statement.currency.id, ttype='payment', date=line.date, context=context)
if line.move_line_id:
voucher_res = {
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help : https://help.launchpad.net/ListHelp