Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
110 changes: 110 additions & 0 deletions edi_local/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
=========
Edi local
=========

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

.. |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/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/17.0/edi_local
:alt: OCA/edi
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-17-0/edi-17-0-edi_local
: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=17.0
:alt: Try me on Runboat

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

The module allows, through configuration, the following:

1. Generating .txt files.
2. Reading .txt files.

**Table of contents**

.. contents::
:local:

Usage
=====

Create headers for the configurations
-------------------------------------

These headers allow us to have a configuration order independent of the
order of the configuration lines.

Example: Header X - Sequence 1 Header Y - Sequence 2 Lines
(Configuration):

- Header Y / Line 1 / Sequence 3
- Header X / Line 2 / Sequence 5
- Header Y / Line 3 / Sequence 1

Therefore, by grouping the lines by header, line 2 will be obtained
first, then line 3, and then line 1, in that order.

1. Go to Settings > Technical > EDI > Edi local header
2. Create a new header
3. Save

Known issues / Roadmap
======================

Add a new xml type and make the necessary modifications to generate and
read files of that type.

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_local%0Aversion:%2017.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
-------

* Binhex

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

- [Binhex] (https://www.binhex.cloud):

- Edilio Escalona Almira [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/17.0/edi_local>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions edi_local/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2025 Binhex <https://www.binhex.cloud>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
22 changes: 22 additions & 0 deletions edi_local/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2025 Binhex <https://www.binhex.cloud>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Edi local",
"summary": "Edi local",
"version": "17.0.1.0.0",
"author": "Binhex,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/edi",
"license": "AGPL-3",
"depends": ["base", "mail"],
"data": [
"security/ir.model.access.csv",
"data/edi_local_header_data.xml",
"data/ir_cron_data.xml",
"views/edi_local_line_views.xml",
"views/edi_local_views.xml",
"views/edi_local_header_views.xml",
"views/edi_local_menus_views.xml",
],
"installable": True,
}
8 changes: 8 additions & 0 deletions edi_local/data/edi_local_header_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="edi_local_type_header_gen" model="edi.local.header">
<field name="sequence">0</field>
<field name="code">gen</field>
<field name="name">General</field>
</record>
</odoo>
16 changes: 16 additions & 0 deletions edi_local/data/ir_cron_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="ir_cron_edi_local_generate_file" model="ir.cron">
<field name="name">Edi Local: Generate files</field>
<field name="model_id" ref="model_edi_local" />
<field name='interval_number'>1</field>
<field name='interval_type'>days</field>
<field name="numbercall">-1</field>
<field name="active" eval="False" />
<field name="doall" eval="False" />
<field
name="code"
>model.with_context(generate_with_cron=True).generate_file_cron()</field>
<field name="state">code</field>
</record>
</odoo>
Loading
Loading