[FIX] l10n_it_edi: remove 'Send' button from Customer Invoices

'Send' button meant to send Italian e-invoices are shown
for invoices belonging to non-Italian companies as well.

Since the invoices' are being sent on validating the
invoice itself, Send button means less business here.

Hence removed it.

opw-1945836
closes #31470

closes odoo/odoo#40736

X-original-commit: 633b931d4565b7e81ef69f6554a0a69b002b78e3
Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
fw-bot
2019-11-22 17:19:32 +00:00
parent c52f91a588
commit ba8ea74a4f
@@ -154,8 +154,6 @@
<xpath expr="//button[@name='preview_invoice']" position="after">
<button name="post" type="object" icon="fa-envelope-o" class="btn btn-primary" string="Resend"
attrs="{'invisible': ['|', ('type', 'not in', ('out_invoice', 'out_refund')), ('l10n_it_send_state', '!=', 'invalid')]}"/>
<button name="post" type="object" icon="fa-envelope-o" class="btn btn-primary" string="Send"
attrs="{'invisible': ['|', '|', ('type', 'not in', ('out_invoice', 'out_refund')), ('state', 'in', ['draft', 'cancel']),('l10n_it_send_state', 'not in', ['to_send', False])]}"/>
</xpath>
<xpath expr="//field[@name='type']" position="before">
<div class="alert alert-success" role="alert"