Skip to content

Commit 993cd5a

Browse files
committed
[IMP] account_invoice_edifact: add module support export edifact format
1 parent 171bdc4 commit 993cd5a

File tree

14 files changed

+1040
-0
lines changed

14 files changed

+1040
-0
lines changed

account_invoice_edifact/README.rst

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
=======================
2+
Account Invoice EDIFACT
3+
=======================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:70d9ca517fbd902f6eb1d5b7a7e6b51be92f174ec45f39548e2972b519876286
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Alpha
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
20+
:target: https://github.com/OCA/edi/tree/16.0/account_invoice_edifact
21+
:alt: OCA/edi
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-account_invoice_edifact
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&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
UN/EDIFACT
32+
United Nations rules for Elec­tronic Data Interchange for Administration, Commerce and Transport
33+
34+
This module will support exporting invoice in EDIFACT format.
35+
36+
https://www.stedi.com/edi/edifact/D96A/messages/INVOIC
37+
38+
.. IMPORTANT::
39+
This is an alpha version, the data model and design can change at any time without warning.
40+
Only for development or testing purpose, do not use in production.
41+
`More details on development status <https://odoo-community.org/page/development-status>`_
42+
43+
**Table of contents**
44+
45+
.. contents::
46+
:local:
47+
48+
Bug Tracker
49+
===========
50+
51+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
52+
In case of trouble, please check there if your issue has already been reported.
53+
If you spotted it first, help us to smash it by providing a detailed and welcomed
54+
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20account_invoice_edifact%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
55+
56+
Do not contact contributors directly about support or help with technical issues.
57+
58+
Credits
59+
=======
60+
61+
Authors
62+
~~~~~~~
63+
64+
* Camptocamp
65+
66+
Contributors
67+
~~~~~~~~~~~~
68+
69+
* Thien (Vo Hong) <thienvh@trobz.com>
70+
71+
Other credits
72+
~~~~~~~~~~~~~
73+
74+
The development of this module has been financially supported by:
75+
76+
* Camptocamp
77+
78+
Maintainers
79+
~~~~~~~~~~~
80+
81+
This module is maintained by the OCA.
82+
83+
.. image:: https://odoo-community.org/logo.png
84+
:alt: Odoo Community Association
85+
:target: https://odoo-community.org
86+
87+
OCA, or the Odoo Community Association, is a nonprofit organization whose
88+
mission is to support the collaborative development of Odoo features and
89+
promote its widespread use.
90+
91+
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/16.0/account_invoice_edifact>`_ project on GitHub.
92+
93+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_invoice_edifact/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2023 Camptocamp
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
3+
{
4+
"name": "Account Invoice EDIFACT",
5+
"summary": "Generate customer invoices with EDIFACT/D96A format",
6+
"version": "16.0.1.0.0",
7+
"development_status": "Alpha",
8+
"category": "Invoicing Management",
9+
"website": "https://github.com/OCA/edi",
10+
"author": "Camptocamp, Odoo Community Association (OCA)",
11+
"license": "AGPL-3",
12+
"installable": True,
13+
"depends": [
14+
"sale_management",
15+
"account",
16+
"base_edifact",
17+
],
18+
"data": [],
19+
"demo": [
20+
"demo/data_demo.xml",
21+
],
22+
}
+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<record id="partner_edifact_dm" model="res.partner">
4+
<field name="name">Partner Name 1</field>
5+
<field name="is_company" eval="True" />
6+
<field name="customer_rank" eval="1" />
7+
<field name="street">Street 1</field>
8+
<field name="zip">1234</field>
9+
<field name="city">City 1</field>
10+
<field name="country_id" ref="base.lu" />
11+
</record>
12+
<record id="partner_edifact_shipto_dm" model="res.partner">
13+
<field name="name">Partner Name 2</field>
14+
<field name="parent_id" ref="partner_edifact_dm" />
15+
<field name="street">Street 2</field>
16+
<field name="zip">4321</field>
17+
<field name="city">City 2</field>
18+
<field name="country_id" ref="base.pl" />
19+
<field name="email" />
20+
<field name="type">delivery</field>
21+
</record>
22+
<record id="partner_edifact_invoiceto_dm" model="res.partner">
23+
<field name="name">Partner Name 3</field>
24+
<field name="parent_id" ref="partner_edifact_dm" />
25+
<field name="street">Street 3</field>
26+
<field name="zip">3214</field>
27+
<field name="city">City 3</field>
28+
<field name="country_id" ref="base.pl" />
29+
<field name="function">Accountant</field>
30+
<field name="customer_rank" eval="1" />
31+
<field name="type">invoice</field>
32+
</record>
33+
34+
<record
35+
id="user_edifact_sender_dm"
36+
model="res.users"
37+
context="{'no_reset_password': True}"
38+
>
39+
<field name="partner_id" ref="partner_edifact_dm" />
40+
<field name="name">Edifact User</field>
41+
<field name="login">edifact_username</field>
42+
<field name="password">edifact_password</field>
43+
</record>
44+
45+
<record id="res_partner_id_number_edifact" model="res.partner.id_number">
46+
<field
47+
name="category_id"
48+
ref="partner_identification_gln.partner_identification_gln_number_category"
49+
/>
50+
<field name="partner_id" ref="partner_edifact_dm" />
51+
<field name="name">9780201379624</field>
52+
</record>
53+
<record id="res_partner_id_number_edifact_shipto" model="res.partner.id_number">
54+
<field
55+
name="category_id"
56+
ref="partner_identification_gln.partner_identification_gln_number_category"
57+
/>
58+
<field name="partner_id" ref="partner_edifact_shipto_dm" />
59+
<field name="name">9780201379686</field>
60+
</record>
61+
<record id="res_partner_id_number_edifact_invoiceto" model="res.partner.id_number">
62+
<field
63+
name="category_id"
64+
ref="partner_identification_gln.partner_identification_gln_number_category"
65+
/>
66+
<field name="partner_id" ref="partner_edifact_invoiceto_dm" />
67+
<field name="name">9780201379174</field>
68+
</record>
69+
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import account_move

0 commit comments

Comments
 (0)