From a8986993aac79e3de68e8b828d3f206c1418ce11 Mon Sep 17 00:00:00 2001 From: majouda Date: Tue, 2 Jul 2024 13:56:34 -0400 Subject: [PATCH] Code Review --- account_invoice_constraint_chronology_forced/__init__.py | 2 +- .../__manifest__.py | 4 ++-- account_invoice_constraint_chronology_forced/hooks.py | 3 +-- .../models/__init__.py | 2 +- .../models/account_journal.py | 6 +----- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/account_invoice_constraint_chronology_forced/__init__.py b/account_invoice_constraint_chronology_forced/__init__.py index 7fa08147..f9ea9bde 100644 --- a/account_invoice_constraint_chronology_forced/__init__.py +++ b/account_invoice_constraint_chronology_forced/__init__.py @@ -1,4 +1,4 @@ -# © 2023 Numigi +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from . import models diff --git a/account_invoice_constraint_chronology_forced/__manifest__.py b/account_invoice_constraint_chronology_forced/__manifest__.py index 50ac0102..100849df 100644 --- a/account_invoice_constraint_chronology_forced/__manifest__.py +++ b/account_invoice_constraint_chronology_forced/__manifest__.py @@ -1,4 +1,4 @@ -# © 20123 Numigi +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { @@ -14,6 +14,6 @@ 'account_invoice_constraint_chronology', ], "data": ["views/account_journal.xml"], - 'installable': True, + "installable": True, "post_init_hook": "sale_journals_check_chronology", } diff --git a/account_invoice_constraint_chronology_forced/hooks.py b/account_invoice_constraint_chronology_forced/hooks.py index 7dd88836..c26db8f8 100644 --- a/account_invoice_constraint_chronology_forced/hooks.py +++ b/account_invoice_constraint_chronology_forced/hooks.py @@ -1,6 +1,5 @@ -# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - from odoo import SUPERUSER_ID, api diff --git a/account_invoice_constraint_chronology_forced/models/__init__.py b/account_invoice_constraint_chronology_forced/models/__init__.py index e3794488..cecc4101 100644 --- a/account_invoice_constraint_chronology_forced/models/__init__.py +++ b/account_invoice_constraint_chronology_forced/models/__init__.py @@ -1,4 +1,4 @@ -# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from . import account_journal diff --git a/account_invoice_constraint_chronology_forced/models/account_journal.py b/account_invoice_constraint_chronology_forced/models/account_journal.py index 083cacde..2d74d89a 100644 --- a/account_invoice_constraint_chronology_forced/models/account_journal.py +++ b/account_invoice_constraint_chronology_forced/models/account_journal.py @@ -1,13 +1,9 @@ -# © 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo import api, models, _ from odoo.exceptions import UserError -import logging - -_logger = logging.getLogger(__name__) - class AccountJournal(models.Model): _inherit = "account.journal"