From 6f4fd99062857a7a8fc6be347be0f16d2f830b63 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 29 Oct 2024 17:11:05 +0100 Subject: [PATCH] [FIX] grap_change_views_pos: change order locally in a view, and not for the entire model --- grap_change_views_pos/models/__init__.py | 1 - .../models/account_bank_statement_line.py | 10 ---------- .../views/view_account_bank_statement_line.xml | 2 +- 3 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 grap_change_views_pos/models/account_bank_statement_line.py diff --git a/grap_change_views_pos/models/__init__.py b/grap_change_views_pos/models/__init__.py index 9eaa1e81..744a3a9b 100644 --- a/grap_change_views_pos/models/__init__.py +++ b/grap_change_views_pos/models/__init__.py @@ -1,4 +1,3 @@ -from . import account_bank_statement_line from . import pos_category from . import pos_order from . import pos_order_line diff --git a/grap_change_views_pos/models/account_bank_statement_line.py b/grap_change_views_pos/models/account_bank_statement_line.py deleted file mode 100644 index 9d5c7347..00000000 --- a/grap_change_views_pos/models/account_bank_statement_line.py +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (C) 2018-Today: GRAP (http://www.grap.coop) -# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from odoo import models - - -class AccountBankStatementLine(models.Model): - _inherit = "account.bank.statement.line" - _order = "date desc, journal_id" diff --git a/grap_change_views_pos/views/view_account_bank_statement_line.xml b/grap_change_views_pos/views/view_account_bank_statement_line.xml index 0ac9ffbe..28130e01 100644 --- a/grap_change_views_pos/views/view_account_bank_statement_line.xml +++ b/grap_change_views_pos/views/view_account_bank_statement_line.xml @@ -18,7 +18,7 @@ account.bank.statement.line - +