Skip to content

Commit a08dcb4

Browse files
committed
Merge PR #130 into 18.0
Signed-off-by simahawk
2 parents 3860532 + 4535120 commit a08dcb4

27 files changed

+1621
-0
lines changed

edi_endpoint_oca/README.rst

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
============
2+
EDI endpoint
3+
============
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:39a9fa05388cca05495e879b7333c5ea61d8c2fcb2a50ae94797e2c16eb9a4e9
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi--framework-lightgray.png?logo=github
20+
:target: https://github.com/OCA/edi-framework/tree/18.0/edi_endpoint_oca
21+
:alt: OCA/edi-framework
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_endpoint_oca
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi-framework&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
Base module allowing configuration of custom endpoints for EDI
32+
framework.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Configuration
40+
=============
41+
42+
Go to "EDI -> Config -> Endpoints".
43+
44+
Bug Tracker
45+
===========
46+
47+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi-framework/issues>`_.
48+
In case of trouble, please check there if your issue has already been reported.
49+
If you spotted it first, help us to smash it by providing a detailed and welcomed
50+
`feedback <https://github.com/OCA/edi-framework/issues/new?body=module:%20edi_endpoint_oca%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
51+
52+
Do not contact contributors directly about support or help with technical issues.
53+
54+
Credits
55+
=======
56+
57+
Authors
58+
-------
59+
60+
* Camptocamp
61+
62+
Contributors
63+
------------
64+
65+
- Simone Orsi <[email protected]>
66+
67+
Maintainers
68+
-----------
69+
70+
This module is maintained by the OCA.
71+
72+
.. image:: https://odoo-community.org/logo.png
73+
:alt: Odoo Community Association
74+
:target: https://odoo-community.org
75+
76+
OCA, or the Odoo Community Association, is a nonprofit organization whose
77+
mission is to support the collaborative development of Odoo features and
78+
promote its widespread use.
79+
80+
This module is part of the `OCA/edi-framework <https://github.com/OCA/edi-framework/tree/18.0/edi_endpoint_oca>`_ project on GitHub.
81+
82+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

edi_endpoint_oca/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

edi_endpoint_oca/__manifest__.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2021 Camptocamp SA
2+
# @author: Simone Orsi <[email protected]>
3+
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
4+
5+
{
6+
"name": "EDI endpoint",
7+
"summary": """
8+
Base module allowing configuration of custom endpoints for EDI framework.
9+
""",
10+
"version": "18.0.1.0.0",
11+
"development_status": "Beta",
12+
"license": "LGPL-3",
13+
"website": "https://github.com/OCA/edi-framework",
14+
"author": "Camptocamp,Odoo Community Association (OCA)",
15+
"depends": ["base_edi", "edi_oca", "endpoint"],
16+
"data": [
17+
"data/server_action.xml",
18+
"security/ir.model.access.csv",
19+
"security/ir_rule.xml",
20+
"views/edi_backend_views.xml",
21+
"views/edi_endpoint_views.xml",
22+
"views/edi_exchange_record_views.xml",
23+
],
24+
"demo": ["demo/edi_backend_demo.xml"],
25+
}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<record id="server_action_registry_sync" model="ir.actions.server">
4+
<field name="name">Sync registry</field>
5+
<field name="type">ir.actions.server</field>
6+
<field name="model_id" ref="edi_endpoint_oca.model_edi_endpoint" />
7+
<field name="binding_model_id" ref="edi_endpoint_oca.model_edi_endpoint" />
8+
<field name="state">code</field>
9+
<field name="code">records.write({"registry_sync": True})
10+
</field>
11+
</record>
12+
</odoo>
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<record id="edi_backend_demo" model="edi.backend">
4+
<field name="name">EDI backend with endpoints DEMO</field>
5+
<field name="backend_type_id" ref="edi_oca.demo_edi_backend_type" />
6+
</record>
7+
8+
<record id="edi_exchange_type_demo" model="edi.exchange.type">
9+
<field name="name">EDI exchange demo </field>
10+
<field name="code">demo_endpoint</field>
11+
<field name="backend_type_id" ref="edi_oca.demo_edi_backend_type" />
12+
<field name="direction">input</field>
13+
</record>
14+
15+
<record id="edi_endpoint_demo_1" model="edi.endpoint">
16+
<field name="backend_id" ref="edi_backend_demo" />
17+
<field name="backend_type_id" ref="edi_oca.demo_edi_backend_type" />
18+
<field name="exchange_type_id" ref="edi_exchange_type_demo" />
19+
<field name="name">EDI Demo Endpoint 1</field>
20+
<!-- The prefix `/edi/` will be added automatically -->
21+
<field name="route">/demo/try</field>
22+
<field name="request_method">GET</field>
23+
<field name="exec_mode">code</field>
24+
<field name="code_snippet">
25+
record = endpoint.create_exchange_record()
26+
result = {"response": Response("Created record: %s" % record.identifier)}
27+
</field>
28+
</record>
29+
</odoo>

0 commit comments

Comments
 (0)