Skip to content

Commit 0763460

Browse files
committed
[MIG] account_invoice_files_download: migration to 16.0
1 parent 0f0d7d9 commit 0763460

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

account_invoice_files_download/README.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Account Invoice Files Download
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
20-
:target: https://github.com/OCA/edi/tree/15.0/account_invoice_files_download
20+
:target: https://github.com/OCA/edi/tree/16.0/account_invoice_files_download
2121
:alt: OCA/edi
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
2323
:target: https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-account_invoice_files_download
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -49,7 +49,7 @@ Bug Tracker
4949
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
5050
In case of trouble, please check there if your issue has already been reported.
5151
If you spotted it first, help us to smash it by providing a detailed and welcomed
52-
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20account_invoice_files_download%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
52+
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20account_invoice_files_download%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5353

5454
Do not contact contributors directly about support or help with technical issues.
5555

@@ -82,6 +82,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8282
mission is to support the collaborative development of Odoo features and
8383
promote its widespread use.
8484

85-
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/15.0/account_invoice_files_download>`_ project on GitHub.
85+
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/16.0/account_invoice_files_download>`_ project on GitHub.
8686

8787
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_invoice_files_download/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Account Invoice Files Download",
77
"summary": "Allow to download all files of invoices as one zip file",
8-
"version": "15.0.1.0.0",
8+
"version": "16.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "Coop IT Easy SC, Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/edi",

account_invoice_files_download/i18n/account_invoice_files_download.pot

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 15.0\n"
7+
"Project-Id-Version: Odoo Server 16.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"

account_invoice_files_download/i18n/fr.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 15.0\n"
7+
"Project-Id-Version: Odoo Server 16.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"

account_invoice_files_download/models/account_move.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
ATTACHMENT_TMP_DESC = "temporary-invoice-edi-zip-file"
1616
ZIP_FILE_NAME = "invoice_files-{timestamp}.zip"
1717
REPORT_REF = "account.account_invoices"
18+
PDF_EMBEDDED_EDI_FORMATS = ["facturx_1_0_05"]
1819

1920

2021
class AccountMove(models.Model):
@@ -26,7 +27,7 @@ def _get_invoice_pdf(self):
2627
report.print_report_name, {"object": self, "time": time}
2728
)
2829
filename = "{}.pdf".format(report_name.replace("/", "_"))
29-
report_contents = report._render_qweb_pdf([self.id])[0]
30+
report_contents = report._render_qweb_pdf(REPORT_REF, [self.id])[0]
3031
return filename, report_contents
3132

3233
def _add_invoice_edi_files(self, ziparc):
@@ -36,7 +37,7 @@ def _add_invoice_edi_files(self, ziparc):
3637
ziparc.writestr(pdf_filename, pdf_contents)
3738
# now, add all edi documents that are not embedded in the pdf.
3839
for edi_document in self.edi_document_ids:
39-
if edi_document.edi_format_id._is_embedding_to_invoice_pdf_needed():
40+
if edi_document.edi_format_id.code in PDF_EMBEDDED_EDI_FORMATS:
4041
# already present in the pdf
4142
continue
4243
attachment = edi_document.attachment_id

account_invoice_files_download/static/description/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ <h1 class="title">Account Invoice Files Download</h1>
368368
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369369
!! source digest: sha256:66222ecd351b6fd4c6e33cc1e6ba5e586921554ea203d4415a1405600b4f5ad3
370370
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi/tree/15.0/account_invoice_files_download"><img alt="OCA/edi" src="https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-account_invoice_files_download"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/edi&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
371+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi/tree/16.0/account_invoice_files_download"><img alt="OCA/edi" src="https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-account_invoice_files_download"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/edi&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372372
<p>Allow to download all files (PDF, EDI files) of (possibly multiple) invoices
373373
as one zip file.</p>
374374
<p><strong>Table of contents</strong></p>
@@ -395,7 +395,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
395395
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/edi/issues">GitHub Issues</a>.
396396
In case of trouble, please check there if your issue has already been reported.
397397
If you spotted it first, help us to smash it by providing a detailed and welcomed
398-
<a class="reference external" href="https://github.com/OCA/edi/issues/new?body=module:%20account_invoice_files_download%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
398+
<a class="reference external" href="https://github.com/OCA/edi/issues/new?body=module:%20account_invoice_files_download%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
399399
<p>Do not contact contributors directly about support or help with technical issues.</p>
400400
</div>
401401
<div class="section" id="credits">
@@ -423,7 +423,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
423423
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
424424
mission is to support the collaborative development of Odoo features and
425425
promote its widespread use.</p>
426-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi/tree/15.0/account_invoice_files_download">OCA/edi</a> project on GitHub.</p>
426+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi/tree/16.0/account_invoice_files_download">OCA/edi</a> project on GitHub.</p>
427427
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
428428
</div>
429429
</div>

0 commit comments

Comments
 (0)