From dbda45f305d0029b4ff051d5a45ade3555f49d5d Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Fri, 20 Dec 2019 10:49:07 +0000 Subject: [PATCH] [IMP] account: Sort account.account by code & company Tests about financial reports could be not determinist because the tests are made using two companies having the same chart of accounts. closes odoo/odoo#42226 Related: odoo/enterprise#6432 Signed-off-by: Quentin De Paoli (qdp) --- addons/account/models/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index f335bd66354..0315cb3c5a9 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -333,7 +333,7 @@ class AccountTaxReportLine(models.Model): class AccountAccount(models.Model): _name = "account.account" _description = "Account" - _order = "code" + _order = "code, company_id" @api.constrains('internal_type', 'reconcile') def _check_reconcile(self):