Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] [MIG+IMP] account_receipt_print: migration to 16.0 and refactor #1895

Open
wants to merge 8 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions account_receipt_print/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
================
Receipt Printing
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e6bbeb85fe5b9a6938eb65caf85dd7c12a1a39a8b74b725110aad98faf44c124
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-OCA%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/16.0/account_receipt_print
: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_receipt_print
: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|

This module allows printing of sale and purchase receipts.

**Table of contents**

.. contents::
:local:

Configuration
=============

In order to use sale and purchase receipts, you need to enable them in the user settings.

* Activate **Developer mode**
* Go to *Settings → Users & Companies → Users*
* In the user form, select 'Sale Receipt' and 'Purchase Receipt' checkboxes within the *Technical* section of *Access Rights* tab

If you want to show receipt amount in words on reports:

* Go to *Invoicing → Configuration → Settings*
* Select 'Amount in Words' checkbox within *Customer Invoice* section

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_receipt_print%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
~~~~~~~

* Sergio Zanchetta

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

* `Pordenone Linux User Group APS <https://www.pnlug.it>`__:

* Sergio Zanchetta <https://github.com/primes2h>
* Marco Colombo <marco.colombo@gmail.com>

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_receipt_print>`_ 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 account_receipt_print/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
19 changes: 19 additions & 0 deletions account_receipt_print/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2020-2024 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Receipt Printing",
"version": "16.0.1.0.0",
"category": "Accounting & Finance",
"summary": "Enable printing in sale and purchase receipts",
"author": "Sergio Zanchetta, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
"license": "AGPL-3",
"depends": ["account"],
"data": [
"views/report_invoice.xml",
"views/account_report.xml",
"views/res_config_settings_views.xml",
],
"installable": True,
}
86 changes: 86 additions & 0 deletions account_receipt_print/i18n/account_receipt_print.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_receipt_print
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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_receipt_print
#: model:ir.actions.report,print_report_name:account_receipt_print.account_receipts
msgid "(object._get_move_display_name())"
msgstr ""

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "<strong>Amount In Words:</strong>"
msgstr ""

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Cancelled Receipt"
msgstr ""

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report__display_name
msgid "Display Name"
msgstr ""

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Draft Receipt"
msgstr ""

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report__id
msgid "ID"
msgstr ""

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_receipt_print
#: code:addons/account_receipt_print/models/ir_actions_report.py:0
#, python-format
msgid "Only invoices could be printed."
msgstr ""

#. module: account_receipt_print
#: code:addons/account_receipt_print/models/ir_actions_report.py:0
#, python-format
msgid "Only receipts could be printed."
msgstr ""

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Please use the following communication for your payment :"
msgstr ""

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Purchase Receipt"
msgstr ""

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Receipt"
msgstr ""

#. module: account_receipt_print
#: model:ir.actions.report,name:account_receipt_print.account_receipts
msgid "Receipts"
msgstr ""

#. module: account_receipt_print
#: model:ir.model,name:account_receipt_print.model_ir_actions_report
msgid "Report Action"
msgstr ""
89 changes: 89 additions & 0 deletions account_receipt_print/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_receipt_print
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-30 19:33+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\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_receipt_print
#: model:ir.actions.report,print_report_name:account_receipt_print.account_receipts
msgid "(object._get_move_display_name())"
msgstr "(object._get_move_display_name())"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "<strong>Amount In Words:</strong>"
msgstr "<strong>Importe en palabras:</strong>"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Cancelled Receipt"
msgstr "Recibo Cancelado"

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Draft Receipt"
msgstr "Borrador de Recibo"

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report__id
msgid "ID"
msgstr "ID"

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: account_receipt_print
#: code:addons/account_receipt_print/models/ir_actions_report.py:0
#, python-format
msgid "Only invoices could be printed."
msgstr "Sólo se podían imprimir facturas."

#. module: account_receipt_print
#: code:addons/account_receipt_print/models/ir_actions_report.py:0
#, python-format
msgid "Only receipts could be printed."
msgstr "Sólo se podían imprimir recibos."

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Please use the following communication for your payment :"
msgstr "Por favor, utilice la siguiente comunicación para su pago :"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Purchase Receipt"
msgstr "Recibo de Compra"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Receipt"
msgstr "Recibo"

#. module: account_receipt_print
#: model:ir.actions.report,name:account_receipt_print.account_receipts
msgid "Receipts"
msgstr "Recibos"

#. module: account_receipt_print
#: model:ir.model,name:account_receipt_print.model_ir_actions_report
msgid "Report Action"
msgstr "Informar Acción"
93 changes: 93 additions & 0 deletions account_receipt_print/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_receipt_print
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-13 20:33+0000\n"
"PO-Revision-Date: 2022-07-13 22:36+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 2.3\n"

#. module: account_receipt_print
#: model:ir.actions.report,print_report_name:account_receipt_print.account_receipts
msgid "(object._get_move_display_name())"
msgstr "(object._get_move_display_name())"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "<strong>Amount In Words:</strong>"
msgstr "<strong>Importo in lettere:</strong>"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Cancelled Receipt"
msgstr "Ricevuta annullata"

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Draft Receipt"
msgstr "Ricevuta in bozza"

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report__id
msgid "ID"
msgstr "ID"

#. module: account_receipt_print
#: model:ir.model.fields,field_description:account_receipt_print.field_ir_actions_report____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: account_receipt_print
#: code:addons/account_receipt_print/models/ir_actions_report.py:0
#, python-format
msgid "Only invoices could be printed."
msgstr "Possono essere stampate solo fatture."

#. module: account_receipt_print
#: code:addons/account_receipt_print/models/ir_actions_report.py:0
#, python-format
msgid "Only receipts could be printed."
msgstr "Possono essere stampate solo ricevute."

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Please use the following communication for your payment :"
msgstr "Per il pagamento utilizzare la seguente indicazione:"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Purchase Receipt"
msgstr "Ricevuta di acquisto"

#. module: account_receipt_print
#: model_terms:ir.ui.view,arch_db:account_receipt_print.report_receipt_document
msgid "Receipt"
msgstr "Ricevuta"

#. module: account_receipt_print
#: model:ir.actions.report,name:account_receipt_print.account_receipts
msgid "Receipts"
msgstr "Ricevute"

#. module: account_receipt_print
#: model:ir.model,name:account_receipt_print.model_ir_actions_report
msgid "Report Action"
msgstr "Azione resoconto"

#~ msgid "<strong>Receipt Date:</strong>"
#~ msgstr "<strong>Data ricevuta:</strong>"
3 changes: 3 additions & 0 deletions account_receipt_print/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import ir_actions_report, account_move, res_config_settings
Loading
Loading