From eada83dc839d9cbbd575cabaab5ec83b1876264b Mon Sep 17 00:00:00 2001 From: "Nicolas (vin)" Date: Mon, 19 Jul 2021 12:23:35 +0000 Subject: [PATCH] [FIX] account: fix payment method lines order Currently, the payment method lines are only ordered base on their sequences. This could lead an issue if the sequences are all the same, where they would be returned in a random order. Add a second ordering on the id to avoid such random issues. closes odoo/odoo#73984 X-original-commit: ac700908a80f67e5fd15fa242cc111d57abd4aa9 Signed-off-by: Laurent Smet Signed-off-by: Nicolas Viseur --- addons/account/models/account_payment_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_payment_method.py b/addons/account/models/account_payment_method.py index de907a260e1..5a00338bcbf 100644 --- a/addons/account/models/account_payment_method.py +++ b/addons/account/models/account_payment_method.py @@ -81,7 +81,7 @@ class AccountPaymentMethod(models.Model): class AccountPaymentMethodLine(models.Model): _name = "account.payment.method.line" _description = "Payment Methods" - _order = 'sequence' + _order = 'sequence, id' # == Business fields == name = fields.Char(compute='_compute_name', readonly=False, store=True)