-
-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] account_promissory_note_cajamar: Module to print Cajamar's prom…
…issory notes
- Loading branch information
1 parent
d328853
commit edb6a6a
Showing
20 changed files
with
866 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
==================================== | ||
Impresión de pagaré de Cajamar en A4 | ||
==================================== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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%2Fl10n--spain-lightgray.png?logo=github | ||
:target: https://github.com/OCA/l10n-spain/tree/15.0/account_promissory_note_cajamar | ||
:alt: OCA/l10n-spain | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/l10n-spain-15-0/l10n-spain-15-0-account_promissory_note_cajamar | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/189/15.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
Este modulo le permite imprimir el modelo de pagaré de Cajamar en formato A4. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
Para configurar el formato de impresión del cheque de forma global: | ||
|
||
#. Vaya a *Facturación / Contabilidad > Configuración > Ajustes*. | ||
#. Diríjase al apartado *Pagos de Proveedor*. | ||
#. En *Disposición del cheque* seleccione **Pagaré Cajamar**. | ||
|
||
Para configurar el formato de impresión del cheque para un diario específico: | ||
|
||
#. Vaya a *Facturación / Contabilidad > Configuración > Diarios contables*. | ||
#. Seleccione el diario que quiera. | ||
#. Vaya a "Pagos salientes". | ||
#. Marcar la plantilla de cheque "Pagaré Cajamar". | ||
|
||
Usage | ||
===== | ||
|
||
#. Vaya a Facturación / Contabilidad > Proveedores > Pagos. | ||
#. Pulse en "Crear". | ||
#. Seleccione el diario anteriormente configurado. | ||
#. Marque la opción "Cheques". | ||
#. Active la opción "Pagaré". | ||
#. Seleccione una fecha de vencimiento. | ||
#. Confirme el pago. | ||
#. Pulse "Imprimir Cheque". | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-spain/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20account_promissory_note_cajamar%0Aversion:%2015.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 | ||
~~~~~~~ | ||
|
||
* Tecnativa | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* `Tecnativa <https://www.tecnativa.com>`_: | ||
|
||
* Carlos Roca | ||
|
||
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. | ||
|
||
.. |maintainer-CarlosRoca13| image:: https://github.com/CarlosRoca13.png?size=40px | ||
:target: https://github.com/CarlosRoca13 | ||
:alt: CarlosRoca13 | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-CarlosRoca13| | ||
|
||
This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/15.0/account_promissory_note_cajamar>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2022 Tecnativa - Carlos Roca | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Impresión de pagaré de Cajamar en A4", | ||
"version": "15.0.1.0.0", | ||
"license": "AGPL-3", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"maintainers": ["CarlosRoca13"], | ||
"category": "Accounting", | ||
"website": "https://github.com/OCA/l10n-spain", | ||
"depends": [ | ||
"account_check_printing_report_base", | ||
"account_payment_promissory_note", | ||
], | ||
"data": [ | ||
"views/report_promissory_note.xml", | ||
"report/account_promissory_note_writing_report.xml", | ||
], | ||
"installable": True, | ||
} |
56 changes: 56 additions & 0 deletions
56
account_promissory_note_cajamar/i18n/account_promissory_note_cajamar.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_promissory_note_cajamar | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2022-10-31 16:00+0000\n" | ||
"PO-Revision-Date: 2022-10-31 16:00+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: account_promissory_note_cajamar | ||
#: model:ir.model.fields,field_description:account_promissory_note_cajamar.field_account_journal__account_check_printing_layout | ||
#: model:ir.model.fields,field_description:account_promissory_note_cajamar.field_res_company__account_check_printing_layout | ||
msgid "Check Layout" | ||
msgstr "" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model,name:account_promissory_note_cajamar.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model,name:account_promissory_note_cajamar.model_account_journal | ||
msgid "Journal" | ||
msgstr "" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.actions.report,name:account_promissory_note_cajamar.action_report_promissory_footer_cm | ||
msgid "Payment Promissory Note Cajamar" | ||
msgstr "" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model.fields.selection,name:account_promissory_note_cajamar.selection__account_journal__account_check_printing_layout__account_promissory_note_cajamar_action_report_promissory_footer_cm | ||
#: model:ir.model.fields.selection,name:account_promissory_note_cajamar.selection__res_company__account_check_printing_layout__account_promissory_note_cajamar_action_report_promissory_footer_cm | ||
msgid "Promissory note Cajamar" | ||
msgstr "" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model.fields,help:account_promissory_note_cajamar.field_account_journal__account_check_printing_layout | ||
#: model:ir.model.fields,help:account_promissory_note_cajamar.field_res_company__account_check_printing_layout | ||
msgid "" | ||
"Select the format corresponding to the check paper you will be printing your checks on.\n" | ||
"In order to disable the printing feature, select 'None'." | ||
msgstr "" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model,name:account_promissory_note_cajamar.model_report_account_promissory_note_cajamar_report_check_cm_a4 | ||
msgid "report.account_promissory_note_cajamar.report_check_cm_a4" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_promissory_note_santander | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2022-10-31 16:00+0000\n" | ||
"PO-Revision-Date: 2022-10-31 17:01+0100\n" | ||
"Last-Translator: cubells <vicent@vcubells.net>\n" | ||
"Language-Team: \n" | ||
"Language: es\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_promissory_note_cajamar | ||
#: model:ir.model.fields,field_description:account_promissory_note_cajamar.field_account_journal__account_check_printing_layout | ||
#: model:ir.model.fields,field_description:account_promissory_note_cajamar.field_res_company__account_check_printing_layout | ||
msgid "Check Layout" | ||
msgstr "Plantilla de cheque" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model,name:account_promissory_note_cajamar.model_res_company | ||
msgid "Companies" | ||
msgstr "Compañías" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model,name:account_promissory_note_cajamar.model_account_journal | ||
msgid "Journal" | ||
msgstr "Diario" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.actions.report,name:account_promissory_note_cajamar.action_report_promissory_footer_cm | ||
msgid "Payment Promissory Note Cajamar" | ||
msgstr "Pagaré de Cajamar" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model.fields.selection,name:account_promissory_note_cajamar.selection__account_journal__account_check_printing_layout__account_promissory_note_cajamar_action_report_promissory_footer_cm | ||
#: model:ir.model.fields.selection,name:account_promissory_note_cajamar.selection__res_company__account_check_printing_layout__account_promissory_note_cajamar_action_report_promissory_footer_cm | ||
msgid "Promissory note Cajamar" | ||
msgstr "Pagaré Cajamar" | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model.fields,help:account_promissory_note_cajamar.field_account_journal__account_check_printing_layout | ||
#: model:ir.model.fields,help:account_promissory_note_cajamar.field_res_company__account_check_printing_layout | ||
msgid "" | ||
"Select the format corresponding to the check paper you will be printing your " | ||
"checks on.\n" | ||
"In order to disable the printing feature, select 'None'." | ||
msgstr "" | ||
"Seleccione el tamaño correspondiente al tamaño de cheque que va a imprimir.\n" | ||
"Para desactivar la función de impresión, seleccione 'Ninguno'." | ||
|
||
#. module: account_promissory_note_cajamar | ||
#: model:ir.model,name:account_promissory_note_cajamar.model_report_account_promissory_note_cajamar_report_check_cm_a4 | ||
msgid "report.account_promissory_note_cajamar.report_check_cm_a4" | ||
msgstr "report.account_promissory_note_cajamar.report_check_cm_a4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import account_journal | ||
from . import res_company |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2022 Tecnativa - Carlos Roca | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import fields, models | ||
|
||
from .res_company import REPORTS_DEFINED, REPORTS_DEFINED_ONDELETE | ||
|
||
|
||
class AccountJournal(models.Model): | ||
_inherit = "account.journal" | ||
|
||
account_check_printing_layout = fields.Selection( | ||
selection_add=REPORTS_DEFINED, ondelete=REPORTS_DEFINED_ONDELETE | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2022 Tecnativa - Carlos Roca | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import fields, models | ||
|
||
REPORTS_DEFINED = [ | ||
( | ||
"account_promissory_note_cajamar.action_report_promissory_footer_cm", | ||
"Promissory note Cajamar", | ||
), | ||
] | ||
REPORTS_DEFINED_ONDELETE = {r[0]: "set default" for r in REPORTS_DEFINED} | ||
|
||
|
||
class ResCompany(models.Model): | ||
_inherit = "res.company" | ||
|
||
account_check_printing_layout = fields.Selection( | ||
selection_add=REPORTS_DEFINED, ondelete=REPORTS_DEFINED_ONDELETE | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Para configurar el formato de impresión del cheque de forma global: | ||
|
||
#. Vaya a *Facturación / Contabilidad > Configuración > Ajustes*. | ||
#. Diríjase al apartado *Pagos de Proveedor*. | ||
#. En *Disposición del cheque* seleccione **Pagaré Cajamar**. | ||
|
||
Para configurar el formato de impresión del cheque para un diario específico: | ||
|
||
#. Vaya a *Facturación / Contabilidad > Configuración > Diarios contables*. | ||
#. Seleccione el diario que quiera. | ||
#. Vaya a "Pagos salientes". | ||
#. Marcar la plantilla de cheque "Pagaré Cajamar". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* `Tecnativa <https://www.tecnativa.com>`_: | ||
|
||
* Carlos Roca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Este modulo le permite imprimir el modelo de pagaré de Cajamar en formato A4. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#. Vaya a Facturación / Contabilidad > Proveedores > Pagos. | ||
#. Pulse en "Crear". | ||
#. Seleccione el diario anteriormente configurado. | ||
#. Marque la opción "Cheques". | ||
#. Active la opción "Pagaré". | ||
#. Seleccione una fecha de vencimiento. | ||
#. Confirme el pago. | ||
#. Pulse "Imprimir Cheque". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import check_print |
18 changes: 18 additions & 0 deletions
18
account_promissory_note_cajamar/report/account_promissory_note_writing_report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" ?> | ||
<odoo> | ||
<record id="action_report_promissory_footer_cm" model="ir.actions.report"> | ||
<field name="name">Payment Promissory Note Cajamar</field> | ||
<field name="model">account.payment</field> | ||
<field name="report_type">qweb-pdf</field> | ||
<field | ||
name="report_name" | ||
>account_promissory_note_cajamar.report_check_cm_a4</field> | ||
<field | ||
name="report_file" | ||
>account_promissory_note_cajamar.report_check_cm_a4</field> | ||
<field | ||
name="paperformat_id" | ||
ref="account_check_printing_report_base.paperformat_euro_no_margin" | ||
/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from odoo import models | ||
|
||
|
||
class ReportPromissoryNotePrintCM(models.AbstractModel): | ||
# The definition of this abstract model is done because is needed by | ||
# account_check_printing_report_base for the report to work. | ||
_name = "report.account_promissory_note_cajamar.report_check_cm_a4" | ||
_inherit = "report.account_check_printing_report_base.promissory_footer_a4" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.