From 10dcec1e9af583e2a41acbe3a4676884daf79d76 Mon Sep 17 00:00:00 2001 From: Valencia Rodrigues Sah Date: Tue, 4 Oct 2016 10:24:03 +0200 Subject: [PATCH] [IMP] account: It is better to order also by 'id', esp. when 'sequence' could match among multiple records. --- addons/account/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index 8b9d07a27ec..44e72d8248a 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -1374,7 +1374,7 @@ class AccountPaymentTerm(models.Model): class AccountPaymentTermLine(models.Model): _name = "account.payment.term.line" _description = "Payment Term Line" - _order = "sequence" + _order = "sequence, id" value = fields.Selection([ ('balance', 'Balance'),