-
-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cce03fe
commit f7d564b
Showing
35 changed files
with
2,867 additions
and
0 deletions.
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
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:6161db39eaa16938cd82cb49477c6fbffecebc8c59d08cde376b59d6624b22c7 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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,29 @@ | ||
# 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_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> |
76 changes: 76 additions & 0 deletions
76
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,76 @@ | ||
<?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> | ||
<field | ||
name="line_ids" | ||
eval="[(5, 0, 0), | ||
(0, 0, {'sequence': 10, 'df_field_id': ref('wamas_document_default_field_source')}), | ||
(0, 0, {'sequence': 20, 'df_field_id': ref('wamas_document_default_field_destination')}), | ||
(0, 0, {'sequence': 30, 'df_field_id': ref('wamas_document_default_field_telegram_sequence')}), | ||
(0, 0, {'sequence': 40, 'df_field_id': ref('wamas_document_default_field_creation_time')}), | ||
(0, 0, {'sequence': 50, 'df_field_id': ref('wamas_document_default_field_sentence_type')}), | ||
]" | ||
/> | ||
</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> | ||
<field | ||
name="line_ids" | ||
eval="[(5, 0, 0), | ||
(0, 0, {'sequence': 10, 'df_field_id': ref('wamas_document_default_field_source')}), | ||
(0, 0, {'sequence': 20, 'df_field_id': ref('wamas_document_default_field_destination')}), | ||
(0, 0, {'sequence': 30, 'df_field_id': ref('wamas_document_default_field_telegram_sequence')}), | ||
(0, 0, {'sequence': 40, 'df_field_id': ref('wamas_document_default_field_creation_time')}), | ||
(0, 0, {'sequence': 50, 'df_field_id': ref('wamas_document_default_field_sentence_type')}), | ||
]" | ||
/> | ||
</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> | ||
<field | ||
name="line_ids" | ||
eval="[(5, 0, 0), | ||
(0, 0, {'sequence': 10, 'df_field_id': ref('wamas_document_default_field_source')}), | ||
(0, 0, {'sequence': 20, 'df_field_id': ref('wamas_document_default_field_destination')}), | ||
(0, 0, {'sequence': 30, 'df_field_id': ref('wamas_document_default_field_telegram_sequence')}), | ||
(0, 0, {'sequence': 40, 'df_field_id': ref('wamas_document_default_field_creation_time')}), | ||
(0, 0, {'sequence': 50, 'df_field_id': ref('wamas_document_default_field_sentence_type')}), | ||
]" | ||
/> | ||
</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> | ||
<field | ||
name="line_ids" | ||
eval="[(5, 0, 0), | ||
(0, 0, {'sequence': 10, 'df_field_id': ref('wamas_document_default_field_source')}), | ||
(0, 0, {'sequence': 20, 'df_field_id': ref('wamas_document_default_field_destination')}), | ||
(0, 0, {'sequence': 30, 'df_field_id': ref('wamas_document_default_field_telegram_sequence')}), | ||
(0, 0, {'sequence': 40, 'df_field_id': ref('wamas_document_default_field_creation_time')}), | ||
(0, 0, {'sequence': 50, 'df_field_id': ref('wamas_document_default_field_sentence_type')}), | ||
]" | ||
/> | ||
</record> | ||
|
||
</odoo> |
Oops, something went wrong.