Debian Codegraph @

addons/point_of_sale/static/src/overrides/services/account_move_services.js

raw
1 import { AccountMoveService } from "@account/services/account_move_service";
2 import { isIosApp, isIOS } from "@web/core/browser/feature_detection";
3 import { patch } from "@web/core/utils/patch";
4
5 patch(AccountMoveService.prototype, {
6 async downloadPdf(accountMoveId, target = "download") {
7 if (isIosApp() || isIOS()) {
8 return super.downloadPdf(accountMoveId, "_blank");
9 }
10 super.downloadPdf(accountMoveId, target);
11 },
12 });