From 0fb1b6a8568b599741eda2497a8d6b6339df2783 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 22 Jul 2015 08:54:21 +0200 Subject: [PATCH] [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 --- addons/point_of_sale/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 21f9c803993..25a62395be8 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -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, [