summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2018-05-29 10:06:44 +0200
committerRichard Mathot <rim@odoo.com>2018-05-29 10:06:44 +0200
commita01f7b0e0bff93304ef6f22bfa58aab5cff05393 (patch)
treec584b0f488c6c2a926d1a95245856072e3ab1ac2 /addons
parentf8d57ad437307099c3e8ab229c06f6de72db8587 (diff)
[IMP] payment: faster search on transaction reference
Diffstat (limited to 'addons')
-rw-r--r--addons/payment/models/payment_acquirer.py2
1 files changed, 1 insertions, 1 deletions
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