[IMP] payment: faster search on transaction reference

This commit is contained in:
Richard Mathot
2018-05-29 10:06:44 +02:00
parent f8d57ad437
commit a01f7b0e0b
+1 -1
View File
@@ -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