From 2e8cc564329dd455c15ffd69e6d8771815057344 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 19 Nov 2018 13:30:11 +0000 Subject: [PATCH] [FIX] account: invoice sent when sent from list The "sent" field on an invoice indicates if it has been sent to customer or not. When the invoice is sent to a customer from a form view the sent was set, but when it was sent from the "Send" action on the list view, it was not updated which seems wrong. opw-1910937 closes #28796 --- addons/account/wizard/account_invoice_send_views.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/account/wizard/account_invoice_send_views.xml b/addons/account/wizard/account_invoice_send_views.xml index b57a88a42aa..90ecfadf793 100644 --- a/addons/account/wizard/account_invoice_send_views.xml +++ b/addons/account/wizard/account_invoice_send_views.xml @@ -83,7 +83,9 @@ view_type="form" context="{ 'default_template_id': ref('account.email_template_edi_invoice'), - 'default_is_print': False}" + 'default_is_print': False, + 'mark_invoice_as_sent': True, + }" groups="account.group_account_invoice"/>