odoo/odoo#192473

Created by Accounting, Claire Bretton (clbr)
Merged at 118efaf87db2e0605965f4bdbf903b0e7bfa42a5

Statuses:

label
odoo-dev:18.0-fatturapa_batch_print_and_send-clbr
head
bd7bac5ed5c64f8405ca70a6e3c2a1b62dc48518
merged
9 months ago by Accounting, Ruben Gomes (rugo)
odoo/odoo
18.0 #192473
saas-18.1 #194043
saas-18.2
saas-18.3
saas-18.4
19.0
master #194370

[FIX] account,l10n_it_edi: Batch Print & Send when manual sending method.

Commit 1:

[FIX] account: Batch invoice sending when partner on "Download"

Context:
In 18.0, all batch/multiple invoice sending are processed asynchronously, we never directly
download the generated PDF/XML files. The sending method that is used depends on what is
set on the partner.

Problem:
If you set your partner to "Download" by default, in the batch Send & Print, it
will display "You are about to send: x invoice(s) Download". While it's actually
not downloading, only generating. In 18.1 we changed this to "Manual" which is better but
doesn't go well in a sentence.

Solution:
Let's align everything to "Manually" in batch sending to avoid confusion.

Before:
image

After:
image

opw-4315079

Commit 2:

[IMP] l10n_it_edi: Add possibility to download in batch XML FatturaPA

Context:
In 18.0, when sending invoices in batch, we never download a zip of all generated
files (PDF, XML) since we always process invoices asynchronously with the partner's
sending method set on the partner's form.

Problem:
It's no longer possible to retrieve all XML Fattura PA at once.

Solution:
Add a button under the "Print/Download" button to download them all.

opw-4315079

Commit 3:

[FIX] l10n_it_edi: Fix error message display in Print & Send

The italian error dict does not comply to the default format expected
by the generic Print & Send. It displays the key of the error
instead of the message.
Before:
it_error_msg_pre
After:
it_error_msg_post

task-no