Skip to content

Commit

Permalink
Merge PR #1616 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by AaronHForgeFlow
  • Loading branch information
OCA-git-bot committed Feb 27, 2024
2 parents d7645f0 + cd2a889 commit 971b44a
Show file tree
Hide file tree
Showing 23 changed files with 1,019 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ addon | version | maintainers | summary
[sale_timesheet_invoice_description](sale_timesheet_invoice_description/) | 16.0.1.0.0 | | Add timesheet details in invoice line
[stock_picking_invoicing](stock_picking_invoicing/) | 16.0.1.0.0 | | Stock Picking Invoicing
[stock_picking_return_refund_option](stock_picking_return_refund_option/) | 16.0.1.0.1 | [![sergio-teruel](https://github.com/sergio-teruel.png?size=30px)](https://github.com/sergio-teruel) | Update the refund options in pickings
[account_invoice_tax_note](account_invoice_tax_note/) | 16.0.1.0.0 | | Print tax notes on customer invoices

[//]: # (end addons)

Expand Down
90 changes: 90 additions & 0 deletions account_invoice_tax_note/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
========================
Account invoice tax note
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:04cb0e98428a44022fa8ca12db89012b2ff3aff72ff5ba90a7a1daec0f3ecfd5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_tax_note
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_invoice_tax_note
: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/account-invoicing&target_branch=16.0
:alt: Try me on Runboat

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

In some situations, a mention must be displayed on invoices when a specific tax is used.
This module lets you define such a mention on Tax Groups.
This mechanism complements the invoice note coming from the fiscal position.
These tax group notes are translatable and company dependent.
To contribute to this module, please visit https://odoo-community.org.

**Table of contents**

.. contents::
:local:

Usage
=====

#. Go to 'Accounting/Invoicing > Configuration > Taxes';
#. Select a tax and click on the 'Tax Group' field;
#. Edit the note of the Tax Group.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20account_invoice_tax_note%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
~~~~~~~

* ACSONE SA/NV

Contributors
~~~~~~~~~~~~

* François Honoré <[email protected]>
* Denis Roussel <[email protected]>
* Rattapong Chokmasermkul <[email protected]>
* Dhara Solanki <[email protected]>

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/account-invoicing <https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_tax_note>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions account_invoice_tax_note/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2018 ACSONE SA/NV (https://acsone.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import models
15 changes: 15 additions & 0 deletions account_invoice_tax_note/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2018 ACSONE SA/NV (https://acsone.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
{
"name": "Account invoice tax note",
"version": "16.0.1.0.0",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"development_status": "Production/Stable",
"summary": "Print tax notes on customer invoices",
"website": "https://github.com/OCA/account-invoicing",
"category": "Localization / Accounting",
"license": "AGPL-3",
"depends": ["account"],
"data": ["reports/report_invoice_document.xml", "views/account_tax_views.xml"],
"installable": True,
}
34 changes: 34 additions & 0 deletions account_invoice_tax_note/i18n/account_invoice_tax_note.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_tax_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \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: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_tax_note
#: model:ir.model.fields,help:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Note to insert on Invoice Report if the tax group is used."
msgstr ""

#. module: account_invoice_tax_note
#: model:ir.model.fields,field_description:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Report Note"
msgstr ""

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_tax_group
msgid "Tax Group"
msgstr ""
47 changes: 47 additions & 0 deletions account_invoice_tax_note/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_tax_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-08-09 10:06+0000\n"
"Last-Translator: jabelchi <[email protected]>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_move
msgid "Journal Entry"
msgstr "Assentament comptable"

#. module: account_invoice_tax_note
#: model:ir.model.fields,help:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Note to insert on Invoice Report if the tax group is used."
msgstr ""
"Nota a inserir a l'informe de factura si s'utilitza el grup d'impostos."

#. module: account_invoice_tax_note
#: model:ir.model.fields,field_description:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Report Note"
msgstr "Nota informe"

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_tax_group
msgid "Tax Group"
msgstr "Grup d'impostos"

#~ msgid "Display Name"
#~ msgstr "Nom a mostrar"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Darrera modificació el"
41 changes: 41 additions & 0 deletions account_invoice_tax_note/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_tax_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-07-17 12:43+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.7.1\n"

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_tax_note
#: model:ir.model.fields,help:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Note to insert on Invoice Report if the tax group is used."
msgstr ""
"Dies ist ein Hinweis zur Steuer, der auf dem Rechnungsbeleg gedruckt wird."

#. module: account_invoice_tax_note
#: model:ir.model.fields,field_description:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Report Note"
msgstr "Hinweis auf Beleg"

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_tax_group
msgid "Tax Group"
msgstr "Steuergruppe"

#~ msgid "Invoice"
#~ msgstr "Rechnung"
38 changes: 38 additions & 0 deletions account_invoice_tax_note/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_tax_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-29 17:36+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_move
msgid "Journal Entry"
msgstr "Entrada Diario"

#. module: account_invoice_tax_note
#: model:ir.model.fields,help:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Note to insert on Invoice Report if the tax group is used."
msgstr ""
"Nota a insertar en el informe de facturas si el grupo de impuestos es usado."

#. module: account_invoice_tax_note
#: model:ir.model.fields,field_description:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Report Note"
msgstr "Nota en Informe"

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_tax_group
msgid "Tax Group"
msgstr "Grupo de Impuesto"
40 changes: 40 additions & 0 deletions account_invoice_tax_note/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_tax_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-08-01 08:29+0000\n"
"PO-Revision-Date: 2018-08-01 08:29+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_tax_note
#: model:ir.model.fields,help:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Note to insert on Invoice Report if the tax group is used."
msgstr "Note à insérer dans le rapport des factures si ce groupe est utilisé"

#. module: account_invoice_tax_note
#: model:ir.model.fields,field_description:account_invoice_tax_note.field_account_tax_group__report_note
msgid "Report Note"
msgstr "Note rapport"

#. module: account_invoice_tax_note
#: model:ir.model,name:account_invoice_tax_note.model_account_tax_group
msgid "Tax Group"
msgstr ""

#~ msgid "Invoice"
#~ msgstr "Facture"
5 changes: 5 additions & 0 deletions account_invoice_tax_note/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2018 ACSONE SA/NV (https://acsone.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import account_move
from . import account_tax_group
15 changes: 15 additions & 0 deletions account_invoice_tax_note/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2018 ACSONE SA/NV (https://acsone.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from odoo import models


class AccountMove(models.Model):
_inherit = "account.move"

def _get_account_tax_groups_with_notes(self):
self.ensure_one()
for line in self:
tax_groups = line.mapped("invoice_line_ids.tax_ids.tax_group_id")
tax_groups = tax_groups.filtered(lambda g: g.report_note)
return tax_groups
13 changes: 13 additions & 0 deletions account_invoice_tax_note/models/account_tax_group.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2018 ACSONE SA/NV (https://acsone.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from odoo import fields, models


class AccountTaxGroup(models.Model):
_inherit = "account.tax.group"

report_note = fields.Text(
translate=True,
help="Note to insert on Invoice Report if the tax group is used.",
)
4 changes: 4 additions & 0 deletions account_invoice_tax_note/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* François Honoré <[email protected]>
* Denis Roussel <[email protected]>
* Rattapong Chokmasermkul <[email protected]>
* Dhara Solanki <[email protected]>
5 changes: 5 additions & 0 deletions account_invoice_tax_note/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
In some situations, a mention must be displayed on invoices when a specific tax is used.
This module lets you define such a mention on Tax Groups.
This mechanism complements the invoice note coming from the fiscal position.
These tax group notes are translatable and company dependent.
To contribute to this module, please visit https://odoo-community.org.
3 changes: 3 additions & 0 deletions account_invoice_tax_note/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#. Go to 'Accounting/Invoicing > Configuration > Taxes';
#. Select a tax and click on the 'Tax Group' field;
#. Edit the note of the Tax Group.
20 changes: 20 additions & 0 deletions account_invoice_tax_note/reports/report_invoice_document.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- Copyright 2018 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -->
<odoo>
<template
id="report_invoice_document_inherit"
inherit_id="account.report_invoice_document"
>
<p name="note" position="after">
<t
t-set="account_tax_groups"
t-value="o._get_account_tax_groups_with_notes()"
/>
<t t-if="account_tax_groups">
<t t-foreach="account_tax_groups" t-as="account_tax_group">
<p t-field="account_tax_group.report_note" />
</t>
</t>
</p>
</template>
</odoo>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 971b44a

Please sign in to comment.