[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) <qdp@openerp.com>
This commit is contained in:
Laurent Smet
2020-01-03 13:00:03 +00:00
parent 5dc37da885
commit dbda45f305
+1 -1
View File
@@ -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):