[IMP] account_usability_akretion: order analytic accounts by code
This commit is contained in:
@@ -7,6 +7,8 @@ from odoo import models
|
|||||||
|
|
||||||
class AccountAnalyticAccount(models.Model):
|
class AccountAnalyticAccount(models.Model):
|
||||||
_inherit = 'account.analytic.account'
|
_inherit = 'account.analytic.account'
|
||||||
|
# native: _order = 'plan_id, name asc'
|
||||||
|
_order = 'plan_id, code, name'
|
||||||
|
|
||||||
def name_get(self):
|
def name_get(self):
|
||||||
if self._context.get('analytic_account_show_code_only'):
|
if self._context.get('analytic_account_show_code_only'):
|
||||||
|
|||||||
Reference in New Issue
Block a user