[FIX] account: Add layout to action send and print

When sending the same invoice from Invoices > list view > select an invoice > action > Send and print, the email received by the client does not contain the header and the link to the invoice

This PR adds the custom_layout attribute to the context of "Send & Print" action

opw-2544654

closes odoo/odoo#74311

X-original-commit: 8bb27b88326d6298a03a5fa3978ac99b0e1ee7e0
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
This commit is contained in:
Achraf (abz)
2021-07-27 11:48:14 +00:00
parent dbf81af435
commit d3faed9d9f
+1
View File
@@ -2749,6 +2749,7 @@ class AccountMove(models.Model):
# ir.actions.act_window works
'active_id': self.ids[0],
'active_ids': self.ids,
'custom_layout': 'mail.mail_notification_paynow',
},
'target': 'new',
'type': 'ir.actions.act_window',