mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_group: Remove parent_order
This scrambles the proper order of the groups according the prefix.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{
|
||||
"name": "Groups for accounts",
|
||||
"summary": "Use v11 account groups feature",
|
||||
"version": "10.0.1.0.0",
|
||||
"version": "10.0.1.1.0",
|
||||
"category": "Accounting",
|
||||
"website": "https://github.com/OCA/account-financial-tools",
|
||||
"author": "Tecnativa,"
|
||||
|
||||
11
account_group/migrations/10.0.1.1.0/post-migration.py
Normal file
11
account_group/migrations/10.0.1.1.0/post-migration.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# coding: utf-8
|
||||
# Copyright 2019 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
"""Recompute parent store according new criteria."""
|
||||
env['account.group']._parent_store_compute()
|
||||
@@ -9,7 +9,6 @@ from odoo.osv import expression
|
||||
class AccountGroup(models.Model):
|
||||
_name = 'account.group'
|
||||
_parent_store = True
|
||||
_parent_order = 'name'
|
||||
_order = 'code_prefix'
|
||||
|
||||
parent_id = fields.Many2one(
|
||||
|
||||
Reference in New Issue
Block a user