Hello there,
In the chart of accounts and in the accounts list, we want to sort accounts by CODE.
For example, In the parent account 3, we would want to sort accounts like 3.1, 3.2, 3.3, etc.
Actually, the account_account class is defined like this in Odoo 8 :
class account_account(osv.osv):
_order = "parent_left"
_parent_order = "code"
_name = "account.account"
_description = "Account"
_parent_store = True
How to override this class account_account to sort by CODE in each parent?
Thanks to help