Skip to content

Commit

Permalink
[IMP] edi_sale_ubl_oca: depend on edi_exchange_type_auto
Browse files Browse the repository at this point in the history
  • Loading branch information
thienvh332 committed Aug 9, 2024
1 parent 6f9e402 commit 37b1af8
Show file tree
Hide file tree
Showing 11 changed files with 598 additions and 14 deletions.
82 changes: 81 additions & 1 deletion edi_sale_ubl_oca/README.rst
Original file line number Diff line number Diff line change
@@ -1 +1,81 @@
bot, please, take care of this!
=========
EDI Sales
=========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:af2db468de92ccb162f9d369aa2e73f7d86e42bdd13c9de7209d9bbb2e02df97
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-lightgray.png?logo=github
:target: https://github.com/OCA/edi/tree/14.0/edi_sale_ubl_oca
:alt: OCA/edi
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-edi_sale_ubl_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&target_branch=14.0
:alt: Try me on Runboat

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

TODO

.. 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/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/issues/new?body=module:%20edi_sale_ubl_oca%0Aversion:%2014.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]>

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.

This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/14.0/edi_sale_ubl_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions edi_sale_ubl_oca/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"depends": [
"sale_order_import_ubl",
"edi_sale_oca",
"edi_exchange_type_auto",
"edi_ubl_oca",
"edi_xml_oca",
"edi_exchange_template_oca",
Expand Down
3 changes: 2 additions & 1 deletion edi_sale_ubl_oca/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
class SaleOrder(models.Model):
_name = "sale.order"
_inherit = [
"edi.auto.exchange.consumer.mixin",
"sale.order",
"edi.state.consumer.mixin",
]
Expand Down Expand Up @@ -87,10 +88,10 @@ def create(self, vals_list):
class SaleOrderLine(models.Model):
_name = "sale.order.line"
_inherit = [
"sale.order.line",
"edi.auto.exchange.consumer.mixin",
"edi.id.mixin",
"edi.state.consumer.mixin",
"sale.order.line",
]

def _edi_determine_lines_state(self, orig_vals):
Expand Down
Loading

0 comments on commit 37b1af8

Please sign in to comment.