Skip to content

Commit

Permalink
Code Review
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda committed Jul 2, 2024
1 parent 44f9aae commit a898699
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion account_invoice_constraint_chronology_forced/__init__.py
Original file line number Diff line number Diff line change
@@ -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

Check notice on line 4 in account_invoice_constraint_chronology_forced/__init__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

account_invoice_constraint_chronology_forced/__init__.py#L4

'.models' imported but unused (F401)
Expand Down
4 changes: 2 additions & 2 deletions account_invoice_constraint_chronology_forced/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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).

{

Check warning on line 4 in account_invoice_constraint_chronology_forced/__manifest__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

account_invoice_constraint_chronology_forced/__manifest__.py#L4

Statement seems to have no effect
Expand All @@ -14,6 +14,6 @@
'account_invoice_constraint_chronology',
],
"data": ["views/account_journal.xml"],
'installable': True,
"installable": True,
"post_init_hook": "sale_journals_check_chronology",
}
3 changes: 1 addition & 2 deletions account_invoice_constraint_chronology_forced/hooks.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
Original file line number Diff line number Diff line change
@@ -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

Check notice on line 4 in account_invoice_constraint_chronology_forced/models/__init__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

account_invoice_constraint_chronology_forced/models/__init__.py#L4

'.account_journal' imported but unused (F401)
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit a898699

Please sign in to comment.