Skip to content

Commit

Permalink
Merge PR #1066 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Nov 14, 2024
2 parents 95f7266 + 409f40a commit eb27a4d
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 80 deletions.
2 changes: 1 addition & 1 deletion edi_sale_order_import/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import components
from .hooks import post_load_hook
11 changes: 8 additions & 3 deletions edi_sale_order_import/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@

{
"name": "EDI Sale order import",
"summary": """Plug sale_order_import into EDI machinery.""",
"summary": """
MODULE DEPRECATED: use `edi_sale_oca`.
Plug sale_order_import into EDI machinery.""",
"version": "14.0.1.1.0",
"development_status": "Alpha",
"license": "AGPL-3",
"website": "https://github.com/OCA/edi",
"author": "Camptocamp,Odoo Community Association (OCA)",
"maintainers": ["simahawk"],
"depends": ["edi_oca", "sale_order_import"],
"auto_install": True,
# Depend on edi_sale_oca which now provides the component.
"depends": ["edi_sale_oca"],
"auto_install": False,
"data": ["templates/exchange_chatter_msg.xml"],
"post_load": "post_load_hook",
}
1 change: 0 additions & 1 deletion edi_sale_order_import/components/__init__.py

This file was deleted.

73 changes: 0 additions & 73 deletions edi_sale_order_import/components/process.py

This file was deleted.

14 changes: 14 additions & 0 deletions edi_sale_order_import/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

import logging

_logger = logging.getLogger(__name__)


def deprecate():
_logger.warning("`edi_sale_order_import` is deprecated. Use `edi_sale_oca`")


def post_load_hook():
deprecate()
2 changes: 2 additions & 0 deletions edi_sale_order_import/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DEPRECATED: use `edi_sale_oca`.

Plug sale_order_import into EDI machinery.


Expand Down
1 change: 0 additions & 1 deletion edi_sale_order_import/tests/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion edi_sale_order_import/tests/test_process.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2022 Camptocamp SA
# @author: Simone Orsi <[email protected]>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import base64
import textwrap
Expand Down

0 comments on commit eb27a4d

Please sign in to comment.