[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user