[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
This commit is contained in:
parent
95f2c5537d
commit
8d5398d661
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue