From 7f52403414feb08a1133cbe50e77c64514bdeca0 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Mon, 18 Apr 2011 17:42:56 +0530 Subject: [PATCH] [FIX] point_of_sale: output opration wizard not working bzr revid: ara@tinyerp.com-20110418121256-a9ai8qykk330tj9v --- addons/point_of_sale/wizard/pos_box_out.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/point_of_sale/wizard/pos_box_out.py b/addons/point_of_sale/wizard/pos_box_out.py index a05c5f579e1..f5a70789ee0 100644 --- a/addons/point_of_sale/wizard/pos_box_out.py +++ b/addons/point_of_sale/wizard/pos_box_out.py @@ -94,9 +94,9 @@ class pos_box_out(osv.osv_memory): val = (res_obj.browse(cr, uid, uid).company_id.max_diff or 0.0) + am raise osv.except_osv(_('Error !'), _('The maximum value you can still withdraw is exceeded. \n Remaining value is equal to %d ')%(val)) - acc_id = product_obj.browse(cr, uid, data['product_id'], context=context).property_account_income + acc_id = productp_obj.browse(cr, uid, data['product_id'], context=context).property_account_income if not acc_id: - raise osv.except_osv(_('Error !'), _('please check that account is set to %s')%(product_obj.browse(cr, uid, data['product_id'], context=context).name)) + raise osv.except_osv(_('Error !'), _('please check that account is set to %s')%(productp_obj.browse(cr, uid, data['product_id'], context=context).name)) if not statement_id: raise osv.except_osv(_('Error !'), _('You have to open at least one cashbox')) if statement_id: @@ -119,7 +119,7 @@ class pos_box_out(osv.osv_memory): if productp_obj.browse(cr, uid, data['product_id'], context=context).am_out: vals['am_out'] = True vals['ref'] = data['ref'] or '' - vals['name'] = "%s: %s " % (product_obj.browse(cr, uid, data['product_id'], context=context).name, data['name'].decode('utf8')) + vals['name'] = "%s: %s " % (productp_obj.browse(cr, uid, data['product_id'], context=context).name, data['name'].decode('utf8')) address_u = res_obj.browse(cr, uid, uid, context=context).address_id if address_u: vals['partner_id'] = address_u.partner_id and address_u.partner_id.id or None