From 8d5398d6617d2e7125dcc9996b14d519847a201e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Mon, 24 Feb 2014 16:08:30 +0100 Subject: [PATCH] [FIX] point_of_sale: if an order fails to mark as PAID, leave it at NEW so that the pos client can process new orders. The error has to be manually corrected by the user before session closing bzr revid: fva@openerp.com-20140224150830-5uddv7i1djff2aip --- addons/point_of_sale/point_of_sale.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 01e7a49..912a140 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -561,7 +561,11 @@ class pos_order(osv.osv): 'journal': cash_journal.id, }, context=context) order_ids.append(order_id) - self.signal_paid(cr, uid, [order_id]) + + try: + self.signal_paid(cr, uid, [order_id]) + except Exception as e: + _logger.error('ERROR: Could not mark POS Order as Paid.\n'+str(e)) if to_invoice: self.action_invoice(cr, uid, [order_id], context) -- 1.7.10.4