I want to try and override the "
_triggerDownload
"method in the "
action_service.js" file for splitting the print of invoices each per invoice ids.
I have tried the override via patch method, but this doesn't seem to be working for me.
Here is the reference for the patch -
import { patch } from "@web/core/utils/patch";
import { download } from "@web/core/network/download";
import { actionService } from "@web/webclient/actions/action_service"; // Import the action service
// Patch the action service to override the _triggerDownload method
patch(actionService, 'custom_module_download_patch', {
Please leave your inputs on this.