Skip to content

Commit

Permalink
[IMP] l10n_br_mdfe_spec: pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Jan 16, 2025
1 parent 4ebb275 commit da35ad7
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 61 deletions.
51 changes: 27 additions & 24 deletions l10n_br_mdfe_spec/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,46 @@ mdfe spec
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_mdfe_spec
:target: https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_mdfe_spec
:alt: OCA/l10n-brazil
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-brazil-14-0/l10n-brazil-14-0-l10n_br_mdfe_spec
:target: https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-l10n_br_mdfe_spec
: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/l10n-brazil&target_branch=14.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&target_branch=16.0
:alt: Try me on Runboat

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

Este módulo contem a estrutura de dados do ​Manifesto Eletrônico de Documentos Fiscais (MDF-e).
Este módulo não faz nada sozinho, ele precisaria de um modulo `l10n_br_mdfe` que mapearia esses mixins
nos documentos fiscais Odoo de forma semlhante a forma como o módulo `l10n_br_nfe` faz como o módulo `l10n_br_nfe_spec`.

Este módulo inclui os leiautes persistantes dos modos de transporte do MDF-e:

* modo aéreo
* modo aquaviário
* modo ferroviário
* modo rodoviário
Este módulo contem a estrutura de dados do ​Manifesto Eletrônico de
Documentos Fiscais (MDF-e). Este módulo não faz nada sozinho, ele
precisaria de um modulo l10n_br_mdfe que mapearia esses mixins nos
documentos fiscais Odoo de forma semlhante a forma como o módulo
l10n_br_nfe faz como o módulo l10n_br_nfe_spec.

Este módulo inclui os leiautes persistantes dos modos de transporte do
MDF-e:

- modo aéreo
- modo aquaviário
- modo ferroviário
- modo rodoviário

Geração
~~~~~~~
-------

O código dos mixins Odoo desse módulo é 100% gerado a partir dos últimos esquemas xsd da Fazenda usando xsdata e essa extensão dele:
O código dos mixins Odoo desse módulo é 100% gerado a partir dos últimos
esquemas xsd da Fazenda usando xsdata e essa extensão dele:

https://github.com/akretion/xsdata-odoo


O comando usado foi:

export XSDATA_SCHEMA=mdfe; export XSDATA_VERSION=30; export XSDATA_LANG="portuguese"
export XSDATA_SCHEMA=mdfe; export XSDATA_VERSION=30; export
XSDATA_LANG="portuguese"

xsdata generate nfelib/mdfe/schemas/v3_0 --package nfelib.mdfe.odoo.v3_0 --output=odoo
xsdata generate nfelib/mdfe/schemas/v3_0 --package nfelib.mdfe.odoo.v3_0
--output=odoo

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Expand All @@ -71,25 +74,25 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-brazil/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/l10n-brazil/issues/new?body=module:%20l10n_br_mdfe_spec%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_mdfe_spec%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
~~~~~~~
-------

* Akretion

Contributors
~~~~~~~~~~~~
------------

* Raphaël Valyi <[email protected]>
- Raphaël Valyi <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -109,6 +112,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-rvalyi|

This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_mdfe_spec>`_ project on GitHub.
This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_mdfe_spec>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions l10n_br_mdfe_spec/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions l10n_br_mdfe_spec/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Raphaël Valyi \<<[email protected]>\>
1 change: 0 additions & 1 deletion l10n_br_mdfe_spec/readme/CONTRIBUTORS.rst

This file was deleted.

28 changes: 28 additions & 0 deletions l10n_br_mdfe_spec/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Este módulo contem a estrutura de dados do ​Manifesto Eletrônico de
Documentos Fiscais (MDF-e). Este módulo não faz nada sozinho, ele
precisaria de um modulo l10n_br_mdfe que mapearia esses mixins nos
documentos fiscais Odoo de forma semlhante a forma como o módulo
l10n_br_nfe faz como o módulo l10n_br_nfe_spec.

Este módulo inclui os leiautes persistantes dos modos de transporte do
MDF-e:

- modo aéreo
- modo aquaviário
- modo ferroviário
- modo rodoviário

## Geração

O código dos mixins Odoo desse módulo é 100% gerado a partir dos últimos
esquemas xsd da Fazenda usando xsdata e essa extensão dele:

<https://github.com/akretion/xsdata-odoo>

O comando usado foi:

export XSDATA_SCHEMA=mdfe; export XSDATA_VERSION=30; export
XSDATA_LANG="portuguese"

xsdata generate nfelib/mdfe/schemas/v3_0 --package nfelib.mdfe.odoo.v3_0
--output=odoo
26 changes: 0 additions & 26 deletions l10n_br_mdfe_spec/readme/DESCRIPTION.rst

This file was deleted.

26 changes: 16 additions & 10 deletions l10n_br_mdfe_spec/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,14 @@ <h1 class="title">mdfe spec</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1571bedf7688fbc9828182da1e7e54b95b89a340f85056bdceb00101dec72690
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_mdfe_spec"><img alt="OCA/l10n-brazil" src="https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-brazil-14-0/l10n-brazil-14-0-l10n_br_mdfe_spec"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Este módulo contem a estrutura de dados do ​Manifesto Eletrônico de Documentos Fiscais (MDF-e).
Este módulo não faz nada sozinho, ele precisaria de um modulo <cite>l10n_br_mdfe</cite> que mapearia esses mixins
nos documentos fiscais Odoo de forma semlhante a forma como o módulo <cite>l10n_br_nfe</cite> faz como o módulo <cite>l10n_br_nfe_spec</cite>.</p>
<p>Este módulo inclui os leiautes persistantes dos modos de transporte do MDF-e:</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_mdfe_spec"><img alt="OCA/l10n-brazil" src="https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-l10n_br_mdfe_spec"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Este módulo contem a estrutura de dados do ​Manifesto Eletrônico de
Documentos Fiscais (MDF-e). Este módulo não faz nada sozinho, ele
precisaria de um modulo l10n_br_mdfe que mapearia esses mixins nos
documentos fiscais Odoo de forma semlhante a forma como o módulo
l10n_br_nfe faz como o módulo l10n_br_nfe_spec.</p>
<p>Este módulo inclui os leiautes persistantes dos modos de transporte do
MDF-e:</p>
<ul class="simple">
<li>modo aéreo</li>
<li>modo aquaviário</li>
Expand All @@ -382,11 +385,14 @@ <h1 class="title">mdfe spec</h1>
</ul>
<div class="section" id="geracao">
<h1>Geração</h1>
<p>O código dos mixins Odoo desse módulo é 100% gerado a partir dos últimos esquemas xsd da Fazenda usando xsdata e essa extensão dele:</p>
<p>O código dos mixins Odoo desse módulo é 100% gerado a partir dos últimos
esquemas xsd da Fazenda usando xsdata e essa extensão dele:</p>
<p><a class="reference external" href="https://github.com/akretion/xsdata-odoo">https://github.com/akretion/xsdata-odoo</a></p>
<p>O comando usado foi:</p>
<p>export XSDATA_SCHEMA=mdfe; export XSDATA_VERSION=30; export XSDATA_LANG=”portuguese”</p>
<p>xsdata generate nfelib/mdfe/schemas/v3_0 –package nfelib.mdfe.odoo.v3_0 –output=odoo</p>
<p>export XSDATA_SCHEMA=mdfe; export XSDATA_VERSION=30; export
XSDATA_LANG=”portuguese”</p>
<p>xsdata generate nfelib/mdfe/schemas/v3_0 –package nfelib.mdfe.odoo.v3_0
–output=odoo</p>
<div class="admonition important">
<p class="first admonition-title">Important</p>
<p class="last">This is an alpha version, the data model and design can change at any time without warning.
Expand All @@ -405,7 +411,7 @@ <h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-brazil/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_mdfe_spec%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_mdfe_spec%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -435,7 +441,7 @@ <h1>Maintainers</h1>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/rvalyi"><img alt="rvalyi" src="https://github.com/rvalyi.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_mdfe_spec">OCA/l10n-brazil</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_mdfe_spec">OCA/l10n-brazil</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down

0 comments on commit da35ad7

Please sign in to comment.