From 73af77d7bfe10332bcbaf0c7f2149b1de9c78aee Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Mon, 21 Mar 2022 12:15:23 +0100 Subject: [PATCH] [FIX] account_product_fiscal_classification: order by fiscal classification by name --- .../models/account_product_fiscal_classification.py | 1 + .../models/account_product_fiscal_classification_template.py | 1 + 2 files changed, 2 insertions(+) diff --git a/account_product_fiscal_classification/models/account_product_fiscal_classification.py b/account_product_fiscal_classification/models/account_product_fiscal_classification.py index cc68164e4..0f6fc24ac 100644 --- a/account_product_fiscal_classification/models/account_product_fiscal_classification.py +++ b/account_product_fiscal_classification/models/account_product_fiscal_classification.py @@ -9,6 +9,7 @@ class AccountProductFiscalClassification(models.Model): _name = "account.product.fiscal.classification" _description = "Fiscal Classification" + _order = "name" name = fields.Char(required=True) diff --git a/account_product_fiscal_classification/models/account_product_fiscal_classification_template.py b/account_product_fiscal_classification/models/account_product_fiscal_classification_template.py index 8846b053f..9221ed98e 100644 --- a/account_product_fiscal_classification/models/account_product_fiscal_classification_template.py +++ b/account_product_fiscal_classification/models/account_product_fiscal_classification_template.py @@ -8,6 +8,7 @@ class AccountProductFiscalClassificationTemplate(models.Model): _name = "account.product.fiscal.classification.template" _description = "Fiscal Classification Template" + _order = "name" name = fields.Char(required=True, translate=True)