-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
36
base_wamas/data/wamas_document_default_field_template_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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