diff --git a/l10n_br_boleto_usability/README.rst b/l10n_br_boleto_usability/README.rst new file mode 100644 index 0000000..3ab6f1f --- /dev/null +++ b/l10n_br_boleto_usability/README.rst @@ -0,0 +1,76 @@ +======================== +L10n BR Boleto Usability +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:4d736749c0ef49d1d5c958d0ac17ef6fb0291de2d340be09bec9cd222eba5791 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-KMEE%2Fkmee--odoo--addons-lightgray.png?logo=github + :target: https://github.com/KMEE/kmee-odoo-addons/tree/14.0/l10n_br_boleto_usability + :alt: KMEE/kmee-odoo-addons + +|badge1| |badge2| |badge3| + +This module improve usability of boleto. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +This module does not require any special configuration. + +Usage +===== + +To use this module, you need to: + +:: + + 1. This module raises an error when user try to print a boleto of invoice with fiscal documents that are not autorized. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* KMEE + +Contributors +------------ + +- ``KMEE ``\ \_\_: + + - Luis Felipe Mileo mileo@kmee.com.br + +Maintainers +----------- + +This module is part of the `KMEE/kmee-odoo-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/l10n_br_boleto_usability/__init__.py b/l10n_br_boleto_usability/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/l10n_br_boleto_usability/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_br_boleto_usability/__manifest__.py b/l10n_br_boleto_usability/__manifest__.py new file mode 100644 index 0000000..960f8d4 --- /dev/null +++ b/l10n_br_boleto_usability/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright 2024 KMEE +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "L10n BR Boleto Usability", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "KMEE,Odoo Community Association (OCA)", + "website": "https://github.com/KMEE/kmee-odoo-addons", + "depends": [ + "l10n_br_account", + "l10n_br_account_payment_order", + ], +} diff --git a/l10n_br_boleto_usability/models/__init__.py b/l10n_br_boleto_usability/models/__init__.py new file mode 100644 index 0000000..9c0a421 --- /dev/null +++ b/l10n_br_boleto_usability/models/__init__.py @@ -0,0 +1 @@ +from . import account_move diff --git a/l10n_br_boleto_usability/models/account_move.py b/l10n_br_boleto_usability/models/account_move.py new file mode 100644 index 0000000..53adb01 --- /dev/null +++ b/l10n_br_boleto_usability/models/account_move.py @@ -0,0 +1,21 @@ +# Copyright 2024 KMEE +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import _, models +from odoo.exceptions import UserError + +from odoo.addons.l10n_br_fiscal.constants.fiscal import SITUACAO_EDOC_AUTORIZADA + + +class AccountMove(models.Model): + + _inherit = "account.move" + + def view_boleto_pdf(self): + for record in self: + for edoc in record.fiscal_document_ids: + if edoc.state_edoc != SITUACAO_EDOC_AUTORIZADA: + raise UserError( + _("Emita o documento fiscal antes de imprimir o boleto.") + ) + return super().view_boleto_pdf() diff --git a/l10n_br_boleto_usability/readme/CONFIGURE.md b/l10n_br_boleto_usability/readme/CONFIGURE.md new file mode 100644 index 0000000..8c047d1 --- /dev/null +++ b/l10n_br_boleto_usability/readme/CONFIGURE.md @@ -0,0 +1 @@ +This module does not require any special configuration. diff --git a/l10n_br_boleto_usability/readme/CONTRIBUTORS.md b/l10n_br_boleto_usability/readme/CONTRIBUTORS.md new file mode 100644 index 0000000..8cea736 --- /dev/null +++ b/l10n_br_boleto_usability/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +* `KMEE `__: + + * Luis Felipe Mileo diff --git a/l10n_br_boleto_usability/readme/DESCRIPTION.md b/l10n_br_boleto_usability/readme/DESCRIPTION.md new file mode 100644 index 0000000..f6d03ab --- /dev/null +++ b/l10n_br_boleto_usability/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module improve usability of boleto. diff --git a/l10n_br_boleto_usability/readme/USAGE.md b/l10n_br_boleto_usability/readme/USAGE.md new file mode 100644 index 0000000..4d52f4e --- /dev/null +++ b/l10n_br_boleto_usability/readme/USAGE.md @@ -0,0 +1,4 @@ +To use this module, you need to: + + 1. This module raises an error when user try to print a boleto of invoice with fiscal documents that are not autorized. + diff --git a/l10n_br_boleto_usability/static/description/icon.png b/l10n_br_boleto_usability/static/description/icon.png new file mode 100644 index 0000000..3a0328b Binary files /dev/null and b/l10n_br_boleto_usability/static/description/icon.png differ diff --git a/l10n_br_boleto_usability/static/description/index.html b/l10n_br_boleto_usability/static/description/index.html new file mode 100644 index 0000000..8644c57 --- /dev/null +++ b/l10n_br_boleto_usability/static/description/index.html @@ -0,0 +1,431 @@ + + + + + +L10n BR Boleto Usability + + + +
+

L10n BR Boleto Usability

+ + +

Beta License: AGPL-3 KMEE/kmee-odoo-addons

+

This module improve usability of boleto.

+

Table of contents

+ +
+

Configuration

+

This module does not require any special configuration.

+
+
+

Usage

+

To use this module, you need to:

+
+1. This module raises an error when user try to print a boleto of invoice with fiscal documents that are not autorized.
+
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • KMEE
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the KMEE/kmee-odoo-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/l10n_br_fiscal_comment_product_lot/static/description/index.html b/l10n_br_fiscal_comment_product_lot/static/description/index.html index d081df4..df81983 100644 --- a/l10n_br_fiscal_comment_product_lot/static/description/index.html +++ b/l10n_br_fiscal_comment_product_lot/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/oca_dependencies.txt b/oca_dependencies.txt new file mode 100644 index 0000000..f760be4 --- /dev/null +++ b/oca_dependencies.txt @@ -0,0 +1 @@ +l10n-brazil 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/readme/CONFIGURE.md b/purchase_report_hide_taxes/readme/CONFIGURE.md index 6d1421d..8c047d1 100644 --- a/purchase_report_hide_taxes/readme/CONFIGURE.md +++ b/purchase_report_hide_taxes/readme/CONFIGURE.md @@ -1 +1 @@ -This module does not require any special configuration. \ No newline at end of file +This module does not require any special configuration. diff --git a/purchase_report_hide_taxes/readme/CONTEXT.md b/purchase_report_hide_taxes/readme/CONTEXT.md index ab71783..2be6da6 100644 --- a/purchase_report_hide_taxes/readme/CONTEXT.md +++ b/purchase_report_hide_taxes/readme/CONTEXT.md @@ -1,3 +1,3 @@ The module was created for the following reason: - • Some company products have a lot of taxes, this causes the product's tax column to break the formatting in the purchase order report. \ No newline at end of file + • Some company products have a lot of taxes, this causes the product's tax column to break the formatting in the purchase order report. diff --git a/purchase_report_hide_taxes/readme/DESCRIPTION.md b/purchase_report_hide_taxes/readme/DESCRIPTION.md index e7853c2..12e1bf6 100644 --- a/purchase_report_hide_taxes/readme/DESCRIPTION.md +++ b/purchase_report_hide_taxes/readme/DESCRIPTION.md @@ -1 +1 @@ -This module removes the product taxes in the purchase order report. \ No newline at end of file +This module removes the product taxes in the purchase order report. diff --git a/purchase_report_hide_taxes/readme/USAGE.md b/purchase_report_hide_taxes/readme/USAGE.md index b53314d..5c2cc80 100644 --- a/purchase_report_hide_taxes/readme/USAGE.md +++ b/purchase_report_hide_taxes/readme/USAGE.md @@ -1,4 +1,4 @@ To use this module, you need to: 1. Go to "Purchase" - 2. Print the purchase order report and verify if the product taxes has been removed. \ No newline at end of file + 2. Print the purchase order report and verify if the product taxes has been removed. 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 { diff --git a/setup/l10n_br_boleto_usability/odoo/addons/l10n_br_boleto_usability b/setup/l10n_br_boleto_usability/odoo/addons/l10n_br_boleto_usability new file mode 120000 index 0000000..e38b889 --- /dev/null +++ b/setup/l10n_br_boleto_usability/odoo/addons/l10n_br_boleto_usability @@ -0,0 +1 @@ +../../../../l10n_br_boleto_usability \ No newline at end of file diff --git a/setup/l10n_br_boleto_usability/setup.py b/setup/l10n_br_boleto_usability/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/l10n_br_boleto_usability/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)