From 56ded53b7c4ecc641bb26ee15d6f0d72b900ebed Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 6 May 2010 18:08:34 +0530 Subject: [PATCH] [Fix] point_of_sale: Fix the problem of active_id in pos_payment bzr revid: sbh@tinyerp.com-20100506123834-e72pyj3ahb9d0jvl --- addons/point_of_sale/wizard/pos_payment.py | 29 ++++++++++++---------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/addons/point_of_sale/wizard/pos_payment.py b/addons/point_of_sale/wizard/pos_payment.py index 2b64d06d440..f5bc1ea9d8c 100644 --- a/addons/point_of_sale/wizard/pos_payment.py +++ b/addons/point_of_sale/wizard/pos_payment.py @@ -105,20 +105,23 @@ class pos_make_payment(osv.osv_memory): active_model = context.get('active_model') if not active_model and active_model != 'pos.order': return result - active_id = context.get('active_id', False) + active_id = context.get('active_id', False) if active_id: - order = self.pool.get('pos.order').browse(cr, uid, active_id) - if order.amount_total == order.amount_paid: - res['arch'] = """
- -