-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from CristianoMafraJunior/16.0-mig-eng_consent…
…_letter_report [16.0][MIG] eng_consent_letter_report: Migration to 16.0
- Loading branch information
Showing
8 changed files
with
582 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,69 @@ | ||
============================== | ||
Relatorio de Carta de Anuência | ||
============================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:0cb6389f18c6017e2dd3b522adde63a37d2df6edbcb9664ca943e9c14a3dc71f | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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_consent_letter_report | ||
:alt: Engenere/engenere-addons | ||
|
||
|badge1| |badge2| |badge3| | ||
|
||
Relatório de Carta de Anuência | ||
------------------------------ | ||
|
||
Este relatório gera a Carta de Anuência, um documento formal utilizado | ||
para confirmar a concordância com a quitação de uma obrigação ou | ||
pendência. Ele contém informações detalhadas do Duplicada, Valor, | ||
Vencimento e outras informações relevantes para a Carta de Anuência. | ||
|
||
**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_consent_letter_report%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_consent_letter_report>`_ project on GitHub. | ||
|
||
You are welcome to contribute. |
Empty file.
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,15 @@ | ||
{ | ||
"name": "Relatório de Carta de Anuência", | ||
"summary": "Relatório em PDF de carta de Anuência.", | ||
"license": "AGPL-3", | ||
"author": "Engenere", | ||
"maintainers": ["cristianomafrajunior"], | ||
"website": "https://github.com/Engenere/engenere-addons", | ||
"version": "16.0.1.0.0", | ||
"depends": ["l10n_br_account", "account_reconcile_oca"], | ||
"data": [ | ||
"report/account_move_line_template.xml", | ||
"report/account_move_line_report.xml", | ||
], | ||
"installable": True, | ||
} |
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 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
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 @@ | ||
## Relatório de Carta de Anuência | ||
|
||
Este relatório gera a Carta de Anuência, um documento formal utilizado para confirmar a concordância com a quitação de uma obrigação ou pendência. Ele contém informações detalhadas do Duplicada, Valor, Vencimento e outras informações relevantes para a Carta de Anuência. |
17 changes: 17 additions & 0 deletions
17
eng_consent_letter_report/report/account_move_line_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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record id="account_move_line_report" model="ir.actions.report"> | ||
<field name="name">Relatório de Carta de Anuência</field> | ||
<field name="model">account.move.line</field> | ||
<field name="report_type">qweb-pdf</field> | ||
<field | ||
name="report_name" | ||
>eng_consent_letter_report.report_account_move_line</field> | ||
<field | ||
name="report_file" | ||
>account_move_line_template.report_account_move_line</field> | ||
<field name="print_report_name">'Relatório de Carta de Anuência'</field> | ||
<field name="paperformat_id" ref="base.paperformat_euro" /> | ||
<field name="binding_type">report</field> | ||
</record> | ||
</odoo> |
63 changes: 63 additions & 0 deletions
63
eng_consent_letter_report/report/account_move_line_template.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,63 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<template id="report_account_move_line"> | ||
<t t-call="web.html_container"> | ||
<t t-call="web.external_layout"> | ||
<div class="page"> | ||
<h2 | ||
style="text-align: center; font-size: 30px; font-weight: bold; text-decoration: underline;" | ||
>Carta de Anuência</h2> | ||
<p | ||
style="text-align: center; font-size: 20px;" | ||
>Declaramos para os devidos fins de direito que nada temos a nós opor quanto ao cancelamento do protesto | ||
da duplicata abaixo relacionada, damos plena quitação da mesma.</p> | ||
<table class="table" style="margin-bottom: 20px;"> | ||
<thead> | ||
<tr> | ||
<th style="font-size: 20px;">Duplicata</th> | ||
<th style="font-size: 20px;">Valor</th> | ||
<th style="font-size: 20px;">Vencimento</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<t t-set="line_counter" t-value="0" /> | ||
<t t-foreach="docs" t-as="doc"> | ||
<t t-if="doc.partner_id"> | ||
<t | ||
t-set="line_counter" | ||
t-value="line_counter + 1" | ||
/> | ||
<tr> | ||
<td><span t-field="doc.name" /></td> | ||
<td><span t-field="doc.balance" /></td> | ||
<td><span t-field="doc.date_maturity" /></td> | ||
</tr> | ||
<t t-if="line_counter % 20 == 0"> | ||
<tr style="page-break-after: always;" /> | ||
</t> | ||
</t> | ||
</t> | ||
</tbody> | ||
</table> | ||
<div style="margin-top: 5cm;" /> | ||
<p style="font-size: 20px;">Sacado: <span | ||
t-field="docs[0].partner_id.name" | ||
/></p> | ||
<p style="font-size: 20px;">Endereço: <span | ||
t-field="docs[0].partner_id.street" | ||
/></p> | ||
<p style="font-size: 20px;">Bairro: <span | ||
t-field="docs[0].partner_id.district" | ||
/></p> | ||
<p style="font-size: 20px;">CEP: <span | ||
t-field="docs[0].partner_id.zip" | ||
/></p> | ||
<p style="font-size: 20px;">CNPJ: <span | ||
t-field="docs[0].partner_id.cnpj_cpf" | ||
/></p> | ||
<p style="font-size: 25px;">Por ser verdade, firmo o presente.</p> | ||
</div> | ||
</t> | ||
</t> | ||
</template> | ||
</odoo> |
Oops, something went wrong.