From 9f5c0f54ec52a8aed6a9635eae5aaac68050929a Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 14 Aug 2013 15:53:46 +0200 Subject: [PATCH] [FIX] point_of_sale: oups, needs an id bzr revid: mat@openerp.com-20130814135346-6zpzl6tc0efowquj --- 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 a965ce33dbd..312442fa2f5 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -110,7 +110,7 @@ class pos_config(osv.osv): def _default_sale_journal(self, cr, uid, context=None): company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context) - res = self.pool.get('account.journal').search(cr, uid, [('type', '=', 'sale'), ('company_id', '=', company_id)], limit=1, context=context) + res = self.pool.get('account.journal').search(cr, uid, [('type', '=', 'sale'), ('company_id', '=', company_id.id)], limit=1, context=context) return res and res[0] or False def _default_shop(self, cr, uid, context=None):