[IMP] account_usability_akretion: order analytic accounts by code

This commit is contained in:
Alexis de Lattre
2025-07-22 17:41:57 +02:00
parent 934d1b8b02
commit dbd79c0ed0

View File

@@ -7,6 +7,8 @@ from odoo import models
class AccountAnalyticAccount(models.Model):
_inherit = 'account.analytic.account'
# native: _order = 'plan_id, name asc'
_order = 'plan_id, code, name'
def name_get(self):
if self._context.get('analytic_account_show_code_only'):