From fbeee26f1570fc0404fcc80b31d67c8c5cc29fb8 Mon Sep 17 00:00:00 2001 From: aliya Date: Mon, 19 Jun 2023 07:52:26 +0000 Subject: [PATCH] [IMP] account: rename call_web_service We added another hook to call the web service after the pdfs were rendered. It would be clearer if the first hook was renamed to remain consistent. closes odoo/odoo#125536 Signed-off-by: Laurent Smet --- addons/account/wizard/account_move_send.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/wizard/account_move_send.py b/addons/account/wizard/account_move_send.py index f5b4a8492e7..4f3179f1f5a 100644 --- a/addons/account/wizard/account_move_send.py +++ b/addons/account/wizard/account_move_send.py @@ -491,7 +491,7 @@ class AccountMoveSend(models.Model): self.ensure_one() return not tools.config['test_enable'] and not modules.module.current_test - def _call_web_service(self, invoices_data): + def _call_web_service_before_invoice_pdf_render(self, invoices_data): # TO OVERRIDE # call a web service before the pdfs are rendered self.ensure_one() @@ -523,7 +523,7 @@ class AccountMoveSend(models.Model): if not invoice_data.get('error') } if invoices_data_web_service: - self._call_web_service(invoices_data_web_service) + self._call_web_service_before_invoice_pdf_render(invoices_data_web_service) invoices_data_pdf = { invoice: invoice_data