[IMP]: point_of_sale: change the name of variable
authorsbh (Open ERP) <sbh@tinyerp.com>
Fri, 26 Mar 2010 13:20:28 +0000 (18:50 +0530)
committersbh (Open ERP) <sbh@tinyerp.com>
Fri, 26 Mar 2010 13:20:28 +0000 (18:50 +0530)
bzr revid: sbh@tinyerp.com-20100326132028-63mm3ddrk4y5s3xv

addons/point_of_sale/wizard/pos_payment.py

index a86ac38..b29a6a4 100644 (file)
@@ -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: