From 6dec1538a066d8cf6872cb8a8484db65f4b22461 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Fri, 26 Mar 2010 18:50:28 +0530 Subject: [PATCH] [IMP]: point_of_sale: change the name of variable bzr revid: sbh@tinyerp.com-20100326132028-63mm3ddrk4y5s3xv --- addons/point_of_sale/wizard/pos_payment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/wizard/pos_payment.py b/addons/point_of_sale/wizard/pos_payment.py index a86ac38..b29a6a4 100644 --- a/addons/point_of_sale/wizard/pos_payment.py +++ b/addons/point_of_sale/wizard/pos_payment.py @@ -45,8 +45,8 @@ class pos_make_payment(osv.osv_memory): res = super(pos_make_payment, self).default_get(cr, uid, fields, context=context) record_id = context and context.get('active_id',False) j_obj = self.pool.get('account.journal') - c = self.pool.get('res.users').browse(cr,uid,uid).company_id.id - journal = j_obj.search(cr, uid, [('type', '=', 'cash'), ('company_id', '=', c)]) + company_id = self.pool.get('res.users').browse(cr,uid,uid).company_id.id + journal = j_obj.search(cr, uid, [('type', '=', 'cash'), ('company_id', '=', company_id)]) if journal: journal = journal[0] else: -- 1.7.10.4