From a01f7b0e0bff93304ef6f22bfa58aab5cff05393 Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Tue, 29 May 2018 10:06:44 +0200 Subject: [PATCH] [IMP] payment: faster search on transaction reference --- addons/payment/models/payment_acquirer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index df5fb042df8..cf4acb215d9 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -573,7 +573,7 @@ class PaymentTransaction(models.Model): fees = fields.Monetary(string='Fees', currency_field='currency_id', readonly=True, help='Fees amount; set by the system because depends on the acquirer') currency_id = fields.Many2one('res.currency', 'Currency', required=True, readonly=True) - reference = fields.Char(string='Reference', required=True, readonly=True, + reference = fields.Char(string='Reference', required=True, readonly=True, index=True, help='Internal reference of the TX') acquirer_reference = fields.Char(string='Acquirer Reference', readonly=True, help='Reference of the TX as stored in the acquirer database') # duplicate partner / transaction data to store the values at transaction time