← Back to team overview

clearcorp team mailing list archive

[Branch ~banking-addons-team/banking-addons/6.1] Rev 153: [FIX] Import move lines without an invoice backport of lp:~openerp-dev/openobject-addons/trunk-bu...

 

Merge authors:
  Amit Bhavsar (Open ERP)
Related merge proposals:
  https://code.launchpad.net/~therp-nl/banking-addons/ba61-lp986088-fix_import_move_lines_without_invoice/+merge/142691
  proposed by: Stefan Rijnhart (Therp) (stefan-therp)
  review: Approve - Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c)
------------------------------------------------------------
revno: 153 [merge]
author: Stefan Rijnhart <stefan@xxxxxxxx>
committer: Guewen Baconnier <guewen.baconnier@xxxxxxxxxxxxxx>
branch nick: banking-addons
timestamp: Mon 2013-01-14 09:55:57 +0100
message:
  [FIX] Import move lines without an invoice backport of lp:~openerp-dev/openobject-addons/trunk-bug-986088-amb
modified:
  account_banking/wizard/account_payment_order.py


--
lp:banking-addons
https://code.launchpad.net/~banking-addons-team/banking-addons/6.1

Your team CLEARCORP development team is subscribed to branch lp:banking-addons.
To unsubscribe from this branch go to https://code.launchpad.net/~banking-addons-team/banking-addons/6.1/+edit-subscription
=== modified file 'account_banking/wizard/account_payment_order.py'
--- account_banking/wizard/account_payment_order.py	2011-12-08 21:20:05 +0000
+++ account_banking/wizard/account_payment_order.py	2013-01-10 13:38:19 +0000
@@ -112,7 +112,7 @@
                 'state': state,
                 ### end account banking
                 'date': date_to_pay,
-                'currency': line.invoice and line.invoice.currency_id.id or False,
+                'currency': line.invoice and line.invoice.currency_id.id or line.journal_id.currency.id or line.journal_id.company_id.currency_id.id,
                 }, context=context)
         return {'type': 'ir.actions.act_window_close'}