From d3faed9d9f2b6475a5700ac35addc833a1c93756 Mon Sep 17 00:00:00 2001 From: "Achraf (abz)" Date: Mon, 26 Jul 2021 13:25:41 +0000 Subject: [PATCH] [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 Signed-off-by: Achraf --- addons/account/models/account_move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index aa529c50835..614690d172f 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -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',