[FIX] l10n_it_edi: allow invoice edit after edi sent
[FIX] l10n_it_edi: allow invoice edit after edi sent

Create an invoice, validate it, sending the data to the SDI.
Now reset to draft the invoice and re-validate it.

Action will be blocked because "You can't regenerate an E-Invoice when
the first one is sent and there are no errors".
This add the possibility to modify the invoice without re-sending it as
long as the first one is still in a sent-with-no-answer state

opw-2196956

closes odoo/odoo#45580

X-original-commit: a315d7dde7ab4c1283c999c336284aeac86dbbbc
Signed-off-by: Nicolas Martinelli (nim) <771435c469f83f6aa9c405ac5e1ed06314a94f2d@odoo.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo