[FIX] point_of_sale: method expects id

The method add_payment expects to recieve the id of a journal, not a browse
record. Introduced at 4b548d9
Courtesy of bluesoft83
This commit is contained in:
Martin Trigaux 2015-07-22 08:54:21 +02:00
parent aa3ce8b594
commit 0fb1b6a856
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ class pos_order(osv.osv):
session.refresh()
if not float_is_zero(order['amount_return'], self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')):
cash_journal = session.cash_journal_id
cash_journal = session.cash_journal_id.id
if not cash_journal:
# Select for change one of the cash journals used in this payment
cash_journal_ids = self.pool['account.journal'].search(cr, uid, [