[CLEAN] payment_acquirer_ogone: removed unnecessary call to self.pool.get

bzr revid: tde@openerp.com-20131120140158-rrb439gnx4rs5zyg
This commit is contained in:
Thibault Delavallée
2013-11-20 15:01:58 +01:00
parent 9bca2bbaac
commit 91be9da35b
@@ -187,7 +187,7 @@ class PaymentTxOgone(osv.Model):
raise ValidationError(error_msg)
# find tx -> @TDENOTE use paytid ?
tx_ids = self.pool['payment.transaction'].search(cr, uid, [('reference', '=', reference)], context=context)
tx_ids = self.search(cr, uid, [('reference', '=', reference)], context=context)
if not tx_ids or len(tx_ids) > 1:
error_msg = 'Ogone: received data for reference %s' % (reference)
if not tx_ids: