Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ addon | version | maintainers | summary
[edi_component_oca](edi_component_oca/) | 19.0.1.1.0 | <a href='https://github.com/simahawk'><img src='https://github.com/simahawk.png' width='32' height='32' style='border-radius:50%;' alt='simahawk'/></a> <a href='https://github.com/etobella'><img src='https://github.com/etobella.png' width='32' height='32' style='border-radius:50%;' alt='etobella'/></a> | Allow to use Connector as a source in EDI
[edi_core_oca](edi_core_oca/) | 19.0.1.1.1 | <a href='https://github.com/simahawk'><img src='https://github.com/simahawk.png' width='32' height='32' style='border-radius:50%;' alt='simahawk'/></a> <a href='https://github.com/etobella'><img src='https://github.com/etobella.png' width='32' height='32' style='border-radius:50%;' alt='etobella'/></a> | Define backends, exchange types, exchange records, basic automation and views for handling EDI exchanges.
[edi_endpoint_oca](edi_endpoint_oca/) | 19.0.1.1.1 | | Base module allowing configuration of custom endpoints for EDI framework.
[edi_purchase_oca](edi_purchase_oca/) | 19.0.1.0.0 | | Define EDI Configuration for Purchase Orders
[edi_queue_oca](edi_queue_oca/) | 19.0.1.0.0 | | Set Queue Jobs on EDI
[edi_record_metadata_oca](edi_record_metadata_oca/) | 19.0.1.0.1 | <a href='https://github.com/simahawk'><img src='https://github.com/simahawk.png' width='32' height='32' style='border-radius:50%;' alt='simahawk'/></a> | Allow to store metadata for related records.
[edi_ubl_oca](edi_ubl_oca/) | 19.0.1.0.0 | <a href='https://github.com/simahawk'><img src='https://github.com/simahawk.png' width='32' height='32' style='border-radius:50%;' alt='simahawk'/></a> | Define EDI backend type for UBL.
Expand Down
10 changes: 10 additions & 0 deletions edi_core_oca/i18n/edi_core_oca.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,16 @@ msgstr ""
msgid "Waiting to be sent"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,field_description:edi_core_oca.field_edi_exchange_record__website_message_ids
msgid "Website Messages"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,help:edi_core_oca.field_edi_exchange_record__website_message_ids
msgid "Website communication history"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,help:edi_core_oca.field_edi_exchange_type__quick_exec
msgid ""
Expand Down
10 changes: 10 additions & 0 deletions edi_core_oca/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,16 @@ msgstr ""
msgid "Waiting to be sent"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,field_description:edi_core_oca.field_edi_exchange_record__website_message_ids
msgid "Website Messages"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,help:edi_core_oca.field_edi_exchange_record__website_message_ids
msgid "Website communication history"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,help:edi_core_oca.field_edi_exchange_type__quick_exec
msgid ""
Expand Down
10 changes: 10 additions & 0 deletions edi_core_oca/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,16 @@ msgstr ""
msgid "Waiting to be sent"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,field_description:edi_core_oca.field_edi_exchange_record__website_message_ids
msgid "Website Messages"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,help:edi_core_oca.field_edi_exchange_record__website_message_ids
msgid "Website communication history"
msgstr ""

#. module: edi_core_oca
#: model:ir.model.fields,help:edi_core_oca.field_edi_exchange_type__quick_exec
msgid ""
Expand Down
16 changes: 10 additions & 6 deletions edi_core_oca/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,16 @@ msgstr "In attesa di essere ricevuto"
msgid "Waiting to be sent"
msgstr "In attesa di essere inviato"

#. module: edi_core_oca
#: model:ir.model.fields,field_description:edi_core_oca.field_edi_exchange_record__website_message_ids
msgid "Website Messages"
msgstr "Messaggi sito web"

#. module: edi_core_oca
#: model:ir.model.fields,help:edi_core_oca.field_edi_exchange_record__website_message_ids
msgid "Website communication history"
msgstr "Cronologia comunicazioni sito web"

#. module: edi_core_oca
#: model:ir.model.fields,help:edi_core_oca.field_edi_exchange_type__quick_exec
msgid ""
Expand Down Expand Up @@ -1795,12 +1805,6 @@ msgstr "id"
#~ msgid "Group By"
#~ msgstr "Raggruppa per"

#~ msgid "Website Messages"
#~ msgstr "Messaggi sito web"

#~ msgid "Website communication history"
#~ msgstr "Cronologia comunicazioni sito web"

#~ msgid "Job Channel"
#~ msgstr "Canale lavoro"

Expand Down
10 changes: 10 additions & 0 deletions edi_endpoint_oca/i18n/edi_endpoint_oca.pot
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,21 @@ msgstr ""
msgid "Code Snippet Docs"
msgstr ""

#. module: edi_endpoint_oca
#: model:ir.model.fields,help:edi_endpoint_oca.field_edi_endpoint__cors
msgid "Comma-separated list of allowed origins"
msgstr ""

#. module: edi_endpoint_oca
#: model:ir.model.fields,field_description:edi_endpoint_oca.field_edi_endpoint__company_id
msgid "Company"
msgstr ""

#. module: edi_endpoint_oca
#: model:ir.model.fields,field_description:edi_endpoint_oca.field_edi_endpoint__cors
msgid "Cors"
msgstr ""

#. module: edi_endpoint_oca
#. odoo-python
#: code:addons/edi_endpoint_oca/models/edi_endpoint.py:0
Expand Down
10 changes: 10 additions & 0 deletions edi_endpoint_oca/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,21 @@ msgstr "Esempio codice"
msgid "Code Snippet Docs"
msgstr "Documenti esempio codice"

#. module: edi_endpoint_oca
#: model:ir.model.fields,help:edi_endpoint_oca.field_edi_endpoint__cors
msgid "Comma-separated list of allowed origins"
msgstr ""

#. module: edi_endpoint_oca
#: model:ir.model.fields,field_description:edi_endpoint_oca.field_edi_endpoint__company_id
msgid "Company"
msgstr "Azienda"

#. module: edi_endpoint_oca
#: model:ir.model.fields,field_description:edi_endpoint_oca.field_edi_endpoint__cors
msgid "Cors"
msgstr ""

#. module: edi_endpoint_oca
#. odoo-python
#: code:addons/edi_endpoint_oca/models/edi_endpoint.py:0
Expand Down
89 changes: 89 additions & 0 deletions edi_purchase_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

============
EDI Purchase
============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:09a867de44a3f48d8f16a20d4a57d4ae6d0f4183f0eb22cf93400ac931a4d99b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi--framework-lightgray.png?logo=github
:target: https://github.com/OCA/edi-framework/tree/19.0/edi_purchase_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-19-0/edi-framework-19-0-edi_purchase_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=19.0
:alt: Try me on Runboat

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

Handle purchase orders via EDI.

This is a base module to plug purchase processes with the EDI framework.

To handle inbound/outbound purchase orders, you need to create your own
integration modules on top of this base module.

**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_purchase_oca%0Aversion:%2019.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
-------

* ForgeFlow
* Camptocamp

Contributors
------------

- Lois Rilo lois.rilo@forgeflow.com
- Simone Orsi simone.orsi@camptocamp.com
- Phan Hong Phuc <phucph@trobz.com>
- Maksym Yankin maksym.yankin@camptocamp.com

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-framework <https://github.com/OCA/edi-framework/tree/19.0/edi_purchase_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_purchase_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
30 changes: 30 additions & 0 deletions edi_purchase_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "EDI Purchase",
"summary": """
Define EDI Configuration for Purchase Orders""",
"version": "19.0.1.0.0",
"license": "LGPL-3",
"author": "ForgeFlow, Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/edi-framework",
"depends": [
"purchase",
"edi_core_oca",
"edi_record_metadata_oca",
],
"data": [
# Data
"data/edi_configuration.xml",
# Views
"views/edi_exchange_record_views.xml",
"views/purchase_order_views.xml",
"views/res_partner_view.xml",
],
"demo": [
"demo/edi_backend.xml",
"demo/edi_exchange_type.xml",
"demo/edi_configuration.xml",
],
}
13 changes: 13 additions & 0 deletions edi_purchase_oca/data/edi_configuration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Generic state change -->
<record
id="edi_conf_trigger_purchase_order_state_change"
model="edi.configuration.trigger"
>
<field name="name">On PO state change</field>
<field name="code">on_edi_purchase_order_state_change</field>
<field name="description">Trigger when a purchase order state changes</field>
<field name="model_id" ref="purchase.model_purchase_order" />
</record>
</odoo>
11 changes: 11 additions & 0 deletions edi_purchase_oca/demo/edi_backend.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="demo_edi_backend_type_purchase" model="edi.backend.type">
<field name="name">Purchase DEMO</field>
<field name="code">purchase_demo</field>
</record>
<record id="demo_edi_backend" model="edi.backend">
<field name="name">purchase DEMO</field>
<field name="backend_type_id" ref="demo_edi_backend_type_purchase" />
</record>
</odoo>
36 changes: 36 additions & 0 deletions edi_purchase_oca/demo/edi_configuration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="demo_edi_configuration_confirmed" model="edi.configuration">
<field name="name">Demo Purchase Order - order confirmed</field>
<field
name="description"
>Show case how you can send out an order automatically</field>
<field name="type_id" ref="demo_edi_exc_type_order_out" />
<field name="backend_id" ref="demo_edi_backend" />
<field name="model_id" ref="purchase.model_purchase_order" />
<field name="trigger_id" ref="edi_conf_trigger_purchase_order_state_change" />
<field name="snippet_do">
# ('draft', 'RFQ'),
# ('sent', 'RFQ Sent'),
# ('to approve', 'To Approve'),
# ('purchase', 'Purchase Order'),
# ('cancel', 'Cancelled')
if record.state == 'purchase':
record._edi_send_via_edi(conf.type_id)
</field>
</record>
<record id="demo_edi_configuration_cancelled" model="edi.configuration">
<field name="name">Demo Purchase Order - order cancelled</field>
<field
name="description"
>Show case how you can send out an order automatically</field>
<field name="type_id" ref="demo_edi_exc_type_order_out" />
<field name="backend_id" ref="demo_edi_backend" />
<field name="model_id" ref="purchase.model_purchase_order" />
<field name="trigger_id" ref="edi_conf_trigger_purchase_order_state_change" />
<field name="snippet_do">
if record.state == 'cancel':
record._edi_send_via_edi(conf.type_id)
</field>
</record>
</odoo>
12 changes: 12 additions & 0 deletions edi_purchase_oca/demo/edi_exchange_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="demo_edi_exc_type_order_out" model="edi.exchange.type">
<field name="backend_type_id" ref="demo_edi_backend_type_purchase" />
<field name="backend_id" ref="demo_edi_backend" />
<field name="name">Demo Purchase Order out</field>
<field name="code">demo_PurchaseOrder_out</field>
<field name="direction">output</field>
<field name="exchange_filename_pattern">{record_name}-{type.code}-{dt}</field>
<field name="exchange_file_ext">xml</field>
</record>
</odoo>
Loading
Loading