[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 <las@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user