Skip to content

Commit

Permalink
[MIG] edi_sale_oca: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
duongtq committed Oct 25, 2023
1 parent a798aa5 commit f5b1a41
Show file tree
Hide file tree
Showing 11 changed files with 583 additions and 17 deletions.
118 changes: 117 additions & 1 deletion edi_sale_oca/README.rst
Original file line number Diff line number Diff line change
@@ -1 +1,117 @@
bot yet to come
=========
EDI Sales
=========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:025dc95e2d51d0445893506bfd24f2341979ed31c5d9fced6ed5f8fa90ab0027
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi--framework-lightgray.png?logo=github
:target: https://github.com/OCA/edi-framework/tree/16.0/edi_sale_oca
:alt: OCA/edi-framework
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-framework-16-0/edi-framework-16-0-edi_sale_oca
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi-framework&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

TODO

Inbound
~~~~~~~
Receive sale orders from EDI channels.

Control sale order confirmation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can decide if the order should be confirmed by exchange type.

On your exchange type, go to advanced settings and add the following::

[...]
components:
process:
usage: input.process.sale.order
[...]
sale_order:
default_confirm_order: true


TODO: shall we add an exchange type example as demo?

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi-framework/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/edi-framework/issues/new?body=module:%20edi_sale_oca%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Camptocamp

Contributors
~~~~~~~~~~~~

* Simone Orsi <[email protected]>
* Duong (Tran Quoc) <[email protected]>

Other credits
~~~~~~~~~~~~~

The migration of this module from 14.0 to 16.0 was financially supported by Camptocamp.

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-simahawk| image:: https://github.com/simahawk.png?size=40px
:target: https://github.com/simahawk
:alt: simahawk

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-simahawk|

This module is part of the `OCA/edi-framework <https://github.com/OCA/edi-framework/tree/16.0/edi_sale_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions edi_sale_oca/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"summary": """
Configuration and special behaviors for EDI on sales.
""",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"development_status": "Alpha",
"license": "AGPL-3",
"author": "Camptocamp,Odoo Community Association (OCA)",
"maintainers": ["simahawk"],
"website": "https://github.com/OCA/edi",
"website": "https://github.com/OCA/edi-framework",
"depends": [
"edi_oca",
"edi_record_metadata_oca",
Expand Down
2 changes: 1 addition & 1 deletion edi_sale_oca/components/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _handle_create_order(self, order_id):
def _handle_existing_order(self, order, message):
prev_record = self._get_previous_record(order)
self.exchange_record.message_post_with_view(
"edi_sale_order_import.message_already_imported",
"edi_sale_oca.message_already_imported",
values={
"order": order,
"prev_record": prev_record,
Expand Down
4 changes: 2 additions & 2 deletions edi_sale_oca/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SaleOrder(models.Model):
# and ask the sender to issue a new order request.
# This approach seems suitable only for orders that do not get processed immediately.

disable_edi_auto = fields.Boolean(
edi_disable_auto = fields.Boolean(
states={"draft": [("readonly", False)]},
)

Expand All @@ -49,7 +49,7 @@ class SaleOrderLine(models.Model):
"edi.id.mixin",
]

disable_edi_auto = fields.Boolean(related="order_id.disable_edi_auto")
edi_disable_auto = fields.Boolean(related="order_id.edi_disable_auto")

# TODO: add test
edi_exchange_ready = fields.Boolean(compute="_compute_edi_exchange_ready")
Expand Down
1 change: 1 addition & 0 deletions edi_sale_oca/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* Simone Orsi <[email protected]>
* Duong (Tran Quoc) <[email protected]>
1 change: 1 addition & 0 deletions edi_sale_oca/readme/CREDITS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The migration of this module from 14.0 to 16.0 was financially supported by Camptocamp.
2 changes: 1 addition & 1 deletion edi_sale_oca/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ On your exchange type, go to advanced settings and add the following::
usage: input.process.sale.order
[...]
sale_order:
confirm_order: true
default_confirm_order: true


TODO: shall we add an exchange type example as demo?
Loading

0 comments on commit f5b1a41

Please sign in to comment.