mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Add indexes on account payment models
The fields where the indexes are added are used in searches in account_payment_order, which becomes really slow when a database have many lines.
This commit is contained in:
committed by
Marçal Isern
parent
c5b634b764
commit
672d8697c7
@@ -11,5 +11,6 @@ class AccountMoveLine(models.Model):
|
||||
'account.payment.mode',
|
||||
string='Payment Mode',
|
||||
domain="[('company_id', '=', company_id)]",
|
||||
ondelete='restrict'
|
||||
ondelete='restrict',
|
||||
index=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user