Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] base_wamas, base_wamas_ubl: Add new modules to handle the WAMAS document #856

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ exclude: |
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
# Maybe reactivate this when all README files include prettier ignore tags?
^README\.md$|
# Ignore the text files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if needed this should be added to the template

/tests/.*\.(txt|xml)|
# Library files can have extraneous formatting (even minimized)
/static/(src/)?lib/|
# Repos using Sphinx to generate docs don't need prettying
Expand Down
89 changes: 89 additions & 0 deletions base_wamas/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
==========
Base WAMAS
==========

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

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

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

Provides following models:

* WAMAS Document Template, to define WAMAS document, it includes WAMAS document elements.
* WAMAS Document Element, to define elements in WAMAS document, such as: WEAK, WEAP...
* WAMAS Document Field, to define fields that WAMAS elment has, there are a lot of fields in a WAMAS element.
* WAMAS Document Default Field, to define default fields of WAMAS document has.
* WAMAS Document Default Field Template, to define the template of default fields of the elements.

**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:%20base_wamas%0Aversion:%2016.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
~~~~~~~

* BCIM
* Camptocamp

Contributors
~~~~~~~~~~~~

* Jacques-Etienne Baudoux <[email protected]>
* Tuan Tran <[email protected]>

Other credits
~~~~~~~~~~~~~

The creation of this module was financially supported by Camptocamp.

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/16.0/base_wamas>`_ 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 base_wamas/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
30 changes: 30 additions & 0 deletions base_wamas/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2023 Jacques-Etienne Baudoux (BCIM) <[email protected]>
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Base WAMAS",
"summary": """Base module to aggregate WAMAS features.""",
"version": "16.0.1.0.0",
"development_status": "Beta",
"website": "https://github.com/OCA/edi",
"license": "AGPL-3",
"author": "BCIM,Camptocamp,Odoo Community Association (OCA)",
"depends": ["base_edi"],
"data": [
"security/ir_model_access.xml",
"data/ir_config_parameter_data.xml",
"data/wamas_document_field_data.xml",
"data/wamas_document_default_field_data.xml",
"data/wamas_document_default_field_template_data.xml",
"data/wamas_document_default_field_template_line_data.xml",
"data/wamas_document_element_data.xml",
"data/wamas_document_template_data.xml",
"views/wamas_document_template_views.xml",
"views/wamas_document_element_views.xml",
"views/wamas_document_field_views.xml",
"views/wamas_document_default_field_views.xml",
"views/wamas_document_default_field_template_views.xml",
"views/wamas_menus.xml",
],
}
29 changes: 29 additions & 0 deletions base_wamas/data/ir_config_parameter_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="wamas_document_default_field_type" model="ir.config_parameter">
<field name="key">wamas_document_default_field_type</field>
<field name="value">Sentence Type</field>
</record>

<record id="wamas_document_list_false_value" model="ir.config_parameter">
<field name="key">wamas_document_list_false_value</field>
<field name="value">["n", "nein", "non", "no", "none", "f", "false"]</field>
</record>

<record id="wamas_document_list_true_value" model="ir.config_parameter">
<field name="key">wamas_document_list_true_value</field>
<field name="value">["j", "ja", "o", "oui", "t", "true", "y", "yes"]</field>
</record>

<record id="wamas_document_default_false_value" model="ir.config_parameter">
<field name="key">wamas_document_default_false_value</field>
<field name="value">"N"</field>
</record>

<record id="wamas_document_default_true_value" model="ir.config_parameter">
<field name="key">wamas_document_default_true_value</field>
<field name="value">"J"</field>
</record>

</odoo>
55 changes: 55 additions & 0 deletions base_wamas/data/wamas_document_default_field_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record
id="wamas_document_default_field_source"
model="wamas.document.default.field"
>
<field name="name">Source</field>
<field name="code">Source</field>
<field name="ttype">str</field>
<field name="len_field">10</field>
</record>

<record
id="wamas_document_default_field_destination"
model="wamas.document.default.field"
>
<field name="name">Destination</field>
<field name="code">Destination</field>
<field name="ttype">str</field>
<field name="len_field">10</field>
</record>

<record
id="wamas_document_default_field_telegram_sequence"
model="wamas.document.default.field"
>
<field name="name">Telegram Sequence</field>
<field name="code">Telegram Sequence</field>
<field name="ttype">int</field>
<field name="len_field">6</field>
<field name="sequence">30</field>
</record>

<record
id="wamas_document_default_field_creation_time"
model="wamas.document.default.field"
>
<field name="name">Creation Time</field>
<field name="code">Creation Time</field>
<field name="ttype">datetime</field>
<field name="len_field">14</field>
</record>

<record
id="wamas_document_default_field_sentence_type"
model="wamas.document.default.field"
>
<field name="name">Sentence Type</field>
<field name="code">Sentence Type</field>
<field name="ttype">str</field>
<field name="len_field">9</field>
</record>

</odoo>
36 changes: 36 additions & 0 deletions base_wamas/data/wamas_document_default_field_template_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record
id="wamas_document_default_field_template_weak"
model="wamas.document.default.field.template"
>
<field name="name">Default Field Template - WEAK</field>
<field name="code">Default Field Template - WEAK</field>
</record>

<record
id="wamas_document_default_field_template_weap"
model="wamas.document.default.field.template"
>
<field name="name">Default Field Template - WEAP</field>
<field name="code">Default Field Template - WEAP</field>
</record>

<record
id="wamas_document_default_field_template_weakq"
model="wamas.document.default.field.template"
>
<field name="name">Default Field Template - WEAKQ</field>
<field name="code">Default Field Template - WEAKQ</field>
</record>

<record
id="wamas_document_default_field_template_weapq"
model="wamas.document.default.field.template"
>
<field name="name">Default Field Template - WEAPQ</field>
<field name="code">Default Field Template - WEAPQ</field>
</record>

</odoo>
Loading
Loading