From bbb57fe006c4792f1884ceb0c921e78f0637949a Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Sat, 11 Sep 2010 16:59:09 +0530 Subject: [PATCH] [IMP] point_of_sale: Improved Make Payment wizard. bzr revid: uco@tinyerp.com-20100911112909-itekdx4wfhima9q9 --- addons/point_of_sale/pos.py | 4 ++-- .../point_of_sale/wizard/pos_box_entries.xml | 2 +- addons/point_of_sale/wizard/pos_box_out.xml | 2 +- addons/point_of_sale/wizard/pos_payment.py | 20 +++++++++++++++++-- addons/point_of_sale/wizard/pos_payment.xml | 5 +++-- 5 files changed, 25 insertions(+), 8 deletions(-) diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py index 1d92820c71a..fd6bda2bf32 100644 --- a/addons/point_of_sale/pos.py +++ b/addons/point_of_sale/pos.py @@ -585,7 +585,7 @@ class pos_order(osv.osv): account_def = property_obj.get(cr, uid, 'property_account_receivable', 'res.partner', context=context) args['account_id'] = order.partner_id and order.partner_id.property_account_receivable and order.partner_id.property_account_receivable.id or account_def.id or curr_c.account_receivable.id if data.get('is_acc',False): - args['is_acc']=data['is_acc'] + args['is_acc'] = data['is_acc'] args['account_id']= prod_obj.browse(cr,uid, data['product_id']).property_account_income and prod_obj.browse(cr,uid, data['product_id']).property_account_income.id if not args['account_id']: raise osv.except_osv(_('Error'), _('Please provide an account for the product: %s')%(prod_obj.browse(cr,uid, data['product_id']).name)) @@ -635,7 +635,7 @@ class pos_order(osv.osv): wf_service = netsvc.LocalService("workflow") wf_service.trg_write(uid, 'pos.order', order_id, cr) - return order_line_id + return order_line_id, price def refund(self, cr, uid, ids, context=None): """Create a copy of order for refund order""" diff --git a/addons/point_of_sale/wizard/pos_box_entries.xml b/addons/point_of_sale/wizard/pos_box_entries.xml index f04c4232ace..e4986ec75ad 100644 --- a/addons/point_of_sale/wizard/pos_box_entries.xml +++ b/addons/point_of_sale/wizard/pos_box_entries.xml @@ -17,7 +17,7 @@