[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
This commit is contained in:
Nicolas Lempereur
2018-11-19 13:36:28 +00:00
parent 48a2ee0b07
commit 2e8cc56432
@@ -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"/>
</data>