From 6ccaf16138fb89786c0a81f278b04bf8a31592fb Mon Sep 17 00:00:00 2001 From: Tiago Amaral Date: Fri, 7 Jun 2024 10:08:13 -0300 Subject: [PATCH 1/3] [ADD] Addons: l10n_br_delivery_picking_label --- .../static/description/index.html | 7 ++-- l10n_br_delivery_picking_label/README.rst | 35 +++++++++++++++++++ l10n_br_delivery_picking_label/__init__.py | 0 .../__manifest__.py | 20 +++++++++++ .../data/paperformat.xml | 15 ++++++++ .../data/report_delivery_picking_label.xml | 21 +++++++++++ .../report/report_delivery_picking_label.xml | 27 ++++++++++++++ .../static/description/index.html | 7 ++-- .../static/description/index.html | 7 ++-- .../addons/l10n_br_delivery_picking_label | 1 + setup/l10n_br_delivery_picking_label/setup.py | 6 ++++ 11 files changed, 137 insertions(+), 9 deletions(-) create mode 100644 l10n_br_delivery_picking_label/README.rst create mode 100644 l10n_br_delivery_picking_label/__init__.py create mode 100644 l10n_br_delivery_picking_label/__manifest__.py create mode 100644 l10n_br_delivery_picking_label/data/paperformat.xml create mode 100644 l10n_br_delivery_picking_label/data/report_delivery_picking_label.xml create mode 100644 l10n_br_delivery_picking_label/report/report_delivery_picking_label.xml create mode 120000 setup/l10n_br_delivery_picking_label/odoo/addons/l10n_br_delivery_picking_label create mode 100644 setup/l10n_br_delivery_picking_label/setup.py diff --git a/l10n_br_boleto_usability/static/description/index.html b/l10n_br_boleto_usability/static/description/index.html index 8644c57..f1438a8 100644 --- a/l10n_br_boleto_usability/static/description/index.html +++ b/l10n_br_boleto_usability/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { diff --git a/l10n_br_delivery_picking_label/README.rst b/l10n_br_delivery_picking_label/README.rst new file mode 100644 index 0000000..38929e8 --- /dev/null +++ b/l10n_br_delivery_picking_label/README.rst @@ -0,0 +1,35 @@ +**This file is going to be generated by oca-gen-addon-readme.** + +*Manual changes will be overwritten.* + +Please provide content in the ``readme`` directory: + +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) + +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. + +A good, one sentence summary in the manifest is also highly recommended. + + +Automatic changelog generation +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +`HISTORY.rst` can be auto generated using `towncrier `_. + +Just put towncrier compatible changelog fragments into `readme/newsfragments` +and the changelog file will be automatically generated and updated when a new fragment is added. + +Please refer to `towncrier` documentation to know more. + +NOTE: the changelog will be automatically generated when using `/ocabot merge $option`. +If you need to run it manually, refer to `OCA/maintainer-tools README `_. diff --git a/l10n_br_delivery_picking_label/__init__.py b/l10n_br_delivery_picking_label/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/l10n_br_delivery_picking_label/__manifest__.py b/l10n_br_delivery_picking_label/__manifest__.py new file mode 100644 index 0000000..3f37bb6 --- /dev/null +++ b/l10n_br_delivery_picking_label/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2024 KMEE +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "L10n Br Delivery Picking Label", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "KMEE", + "website": "https://github.com/KMEE/kmee-odoo-addons", + "depends": [ + "l10n_br_stock_account", + "l10n_br_delivery_nfe", + ], + "data": [ + "report/report_delivery_picking_label.xml", + "data/paperformat.xml", + "data/report_delivery_picking_label.xml", + ], + "demo": [], +} diff --git a/l10n_br_delivery_picking_label/data/paperformat.xml b/l10n_br_delivery_picking_label/data/paperformat.xml new file mode 100644 index 0000000..03a9f2d --- /dev/null +++ b/l10n_br_delivery_picking_label/data/paperformat.xml @@ -0,0 +1,15 @@ + + + + 70x62 + custom + 70 + 62 + Portrait + 1 + 1 + 1 + 1 + 70 + + diff --git a/l10n_br_delivery_picking_label/data/report_delivery_picking_label.xml b/l10n_br_delivery_picking_label/data/report_delivery_picking_label.xml new file mode 100644 index 0000000..25d8ad8 --- /dev/null +++ b/l10n_br_delivery_picking_label/data/report_delivery_picking_label.xml @@ -0,0 +1,21 @@ + + + + Delivery Picking Label (PDF) + stock.picking + qweb-pdf + l10n_br_delivery_picking_label.report_delivery_picking_label_view + l10n_br_delivery_picking_label.report_delivery_picking_label + object.name + + report + + + diff --git a/l10n_br_delivery_picking_label/report/report_delivery_picking_label.xml b/l10n_br_delivery_picking_label/report/report_delivery_picking_label.xml new file mode 100644 index 0000000..cd8b84e --- /dev/null +++ b/l10n_br_delivery_picking_label/report/report_delivery_picking_label.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/purchase_report_hide_date/static/description/index.html b/purchase_report_hide_date/static/description/index.html index 63175cd..2e369ed 100644 --- a/purchase_report_hide_date/static/description/index.html +++ b/purchase_report_hide_date/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { diff --git a/purchase_report_hide_taxes/static/description/index.html b/purchase_report_hide_taxes/static/description/index.html index 1a84bd2..d9fb82b 100644 --- a/purchase_report_hide_taxes/static/description/index.html +++ b/purchase_report_hide_taxes/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { diff --git a/setup/l10n_br_delivery_picking_label/odoo/addons/l10n_br_delivery_picking_label b/setup/l10n_br_delivery_picking_label/odoo/addons/l10n_br_delivery_picking_label new file mode 120000 index 0000000..9ff0676 --- /dev/null +++ b/setup/l10n_br_delivery_picking_label/odoo/addons/l10n_br_delivery_picking_label @@ -0,0 +1 @@ +../../../../l10n_br_delivery_picking_label \ No newline at end of file diff --git a/setup/l10n_br_delivery_picking_label/setup.py b/setup/l10n_br_delivery_picking_label/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/l10n_br_delivery_picking_label/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From de8d41f5c185ea2e6de12d50137d60893b2edb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Felipe=20Mil=C3=A9o?= Date: Fri, 14 Jun 2024 08:29:08 -0300 Subject: [PATCH 2/3] [REF] index --- l10n_br_boleto_usability/static/description/index.html | 7 +++---- purchase_report_hide_date/static/description/index.html | 7 +++---- purchase_report_hide_taxes/static/description/index.html | 7 +++---- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/l10n_br_boleto_usability/static/description/index.html b/l10n_br_boleto_usability/static/description/index.html index f1438a8..8644c57 100644 --- a/l10n_br_boleto_usability/static/description/index.html +++ b/l10n_br_boleto_usability/static/description/index.html @@ -8,11 +8,10 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ +:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. -Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +274,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: gray; } /* line numbers */ +pre.code .ln { color: grey; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +300,7 @@ span.pre { white-space: pre } -span.problematic, pre.problematic { +span.problematic { color: red } span.section-subtitle { diff --git a/purchase_report_hide_date/static/description/index.html b/purchase_report_hide_date/static/description/index.html index 2e369ed..63175cd 100644 --- a/purchase_report_hide_date/static/description/index.html +++ b/purchase_report_hide_date/static/description/index.html @@ -8,11 +8,10 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ +:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. -Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +274,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: gray; } /* line numbers */ +pre.code .ln { color: grey; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +300,7 @@ span.pre { white-space: pre } -span.problematic, pre.problematic { +span.problematic { color: red } span.section-subtitle { diff --git a/purchase_report_hide_taxes/static/description/index.html b/purchase_report_hide_taxes/static/description/index.html index d9fb82b..1a84bd2 100644 --- a/purchase_report_hide_taxes/static/description/index.html +++ b/purchase_report_hide_taxes/static/description/index.html @@ -8,11 +8,10 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ +:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. -Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +274,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: gray; } /* line numbers */ +pre.code .ln { color: grey; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +300,7 @@ span.pre { white-space: pre } -span.problematic, pre.problematic { +span.problematic { color: red } span.section-subtitle { From b4ba3e8cb78a878df5efaee7db6f2115fdc3b92e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Felipe=20Mil=C3=A9o?= Date: Fri, 14 Jun 2024 08:40:24 -0300 Subject: [PATCH 3/3] [fix] python --- .github/workflows/test.yml | 2 +- test-requirements.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 test-requirements.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 120ad52..c04180e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: fail-fast: false matrix: include: - - container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest + - container: ghcr.io/oca/oca-ci/py3.8-ocb14.0:latest name: test with OCB makepot: "true" services: diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..4a7b308 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,4 @@ +vcrpy # Needed by payment_pagseguro +odoo-test-helper # Needed by spec_driven_model +signxml<3.1.0 +xmldiff