odoo/odoo#88991

Created by Daniel Kosky (dako)
Merged at b2b27a07837e3496c8a06d3da3178c86fe538a89

Statuses:

label
odoo-dev:13.0-l10n-it-edi-dati-pagamento-bank-required-dako
head
2bb7195672b199b50ee2e006845f9655bd78c8a1
merged
3 years ago by Accounting, Josse Colpaert (jco)
odoo/odoo
13.0 #88991

[FIX] l10n_it_edi: bank required for DatiPagamento

Due to changes in the previous commit ceeae85 the DatiPagamento section
is no longer mandatory. However if it is present two fields are
mandatory. 'ImportoPagamento' specifies the amounts, and
'ModalitaPagamento' specifies the type of transaction.

Currently there is a t-if on the ModalitaPagamento field, which is
required by the edi (if the DatiPagamento exists). Since we aren't
adapting the logic much, the type will be fixed at MP05 (bank
transaction), and we will require the invoice to have a partner_bank_id
in order for the DatiPagamento to appear in the xml.

task-2824254