Skip to content

Commit

Permalink
Merge pull request #36 from CristianoMafraJunior/16.0-mig-eng_custome…
Browse files Browse the repository at this point in the history
…r_fiscal_comments

[16.0][MIG]  eng_customer_fiscal_comments: Migration to 16.0
  • Loading branch information
antoniospneto authored Feb 3, 2025
2 parents ae58e80 + 0e2d768 commit b865b4d
Show file tree
Hide file tree
Showing 13 changed files with 610 additions and 0 deletions.
65 changes: 65 additions & 0 deletions eng_customer_fiscal_comments/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
=========================
Customer Fiscal Comments
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:8af292f2a25c59deaeac4397f8d0f9f07118825d592ad0879bc13553244fbcc8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-Engenere%2Fengenere--addons-lightgray.png?logo=github
:target: https://github.com/Engenere/engenere-addons/tree/16.0/eng_customer_fiscal_comments
:alt: Engenere/engenere-addons

|badge1| |badge2| |badge3|

Este módulo permite que os usuários adicionem comentários relacionados a
impostos aos perfis dos clientes, os quais são exibidos nas faturas e
nas NFe.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/Engenere/engenere-addons/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/Engenere/engenere-addons/issues/new?body=module:%20eng_customer_fiscal_comments%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
-------

* Engenere

Maintainers
-----------

.. |maintainer-cristianomafrajunior| image:: https://github.com/cristianomafrajunior.png?size=40px
:target: https://github.com/cristianomafrajunior
:alt: cristianomafrajunior

Current maintainer:

|maintainer-cristianomafrajunior|

This module is part of the `Engenere/engenere-addons <https://github.com/Engenere/engenere-addons/tree/16.0/eng_customer_fiscal_comments>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions eng_customer_fiscal_comments/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions eng_customer_fiscal_comments/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Customer Fiscal Comments ",
"summary": """
The Customer Fiscal Comments module enables users
to add tax-related comments to customer profiles,
which are displayed on invoices for better compliance.
""",
"license": "AGPL-3",
"author": "Engenere",
"maintainers": ["cristianomafrajunior"],
"website": "https://github.com/Engenere/engenere-addons",
"category": "Services/Industry",
"version": "16.0.1.0.0",
"development_status": "Beta",
"depends": ["account", "l10n_br_fiscal"],
"data": [
"views/res_partner_views.xml",
],
"installable": True,
}
50 changes: 50 additions & 0 deletions eng_customer_fiscal_comments/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * eng_customer_fiscal_comments
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-14 20:17+0000\n"
"PO-Revision-Date: 2024-10-14 20:17+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: eng_customer_fiscal_comments
#: model:ir.model,name:eng_customer_fiscal_comments.model_res_partner
msgid "Contact"
msgstr "Contato"

#. module: eng_customer_fiscal_comments
#: model:ir.model.fields,field_description:eng_customer_fiscal_comments.field_l10n_br_fiscal_document_mixin_methods__display_name
#: model:ir.model.fields,field_description:eng_customer_fiscal_comments.field_res_partner__display_name
msgid "Display Name"
msgstr "Nome de exibição"

#. module: eng_customer_fiscal_comments
#: model:ir.model.fields,field_description:eng_customer_fiscal_comments.field_res_partner__fiscal_comments
#: model:ir.model.fields,field_description:eng_customer_fiscal_comments.field_res_users__fiscal_comments
msgid "Fiscal Comments"
msgstr "Comentários Fiscais"

#. module: eng_customer_fiscal_comments
#: model:ir.model,name:eng_customer_fiscal_comments.model_l10n_br_fiscal_document_mixin_methods
msgid "Fiscal Document Mixin Methods"
msgstr ""

#. module: eng_customer_fiscal_comments
#: model:ir.model.fields,field_description:eng_customer_fiscal_comments.field_l10n_br_fiscal_document_mixin_methods__id
#: model:ir.model.fields,field_description:eng_customer_fiscal_comments.field_res_partner__id
msgid "ID"
msgstr "ID"

#. module: eng_customer_fiscal_comments
#: model:ir.model.fields,field_description:eng_customer_fiscal_comments.field_l10n_br_fiscal_document_mixin_methods____last_update
#: model:ir.model.fields,field_description:eng_customer_fiscal_comments.field_res_partner____last_update
msgid "Last Modified on"
msgstr "Última atualização em"
2 changes: 2 additions & 0 deletions eng_customer_fiscal_comments/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import res_partner
from . import document_mixin_methods
13 changes: 13 additions & 0 deletions eng_customer_fiscal_comments/models/document_mixin_methods.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from odoo import models


class DocumentMixinMethods(models.AbstractModel):
_inherit = "l10n_br_fiscal.document.mixin.methods"

def _document_comment(self):
for d in self:
if d.partner_id:
d.manual_fiscal_additional_data = d.partner_id.fiscal_comments
else:
d.manual_fiscal_additional_data = False
return super()._document_comment()
7 changes: 7 additions & 0 deletions eng_customer_fiscal_comments/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from odoo import fields, models


class ResPartner(models.Model):
_inherit = "res.partner"

fiscal_comments = fields.Text()
3 changes: 3 additions & 0 deletions eng_customer_fiscal_comments/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions eng_customer_fiscal_comments/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Este módulo permite que os usuários adicionem comentários relacionados a impostos aos perfis dos clientes, os quais são exibidos nas faturas e nas NFe.
Loading

0 comments on commit b865b4d

Please sign in to comment.