[IMP]: point_of_sale: change the name of variable

bzr revid: sbh@tinyerp.com-20100326132028-63mm3ddrk4y5s3xv
This commit is contained in:
sbh (Open ERP) 2010-03-26 18:50:28 +05:30
parent f1ca4fb2a4
commit 6dec1538a0
1 changed files with 2 additions and 2 deletions

View 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: