Add oca-web submodule with 68 web modules

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ernad Husremovic 2025-08-30 17:27:15 +02:00
parent af56672c08
commit 53fddf87c8
2469 changed files with 101716 additions and 0 deletions

View file

@ -0,0 +1,23 @@
/** @odoo-module **/
import {patch} from "web.utils";
import {ConfirmationDialog} from "@web/core/confirmation_dialog/confirmation_dialog";
import {_t} from "@web/core/l10n/translation";
import {FormController} from "@web/views/form/form_controller";
patch(FormController.prototype, "DuplicateConfirmation", {
async duplicateRecord() {
var _super = this._super;
await this.dialogService.add(ConfirmationDialog, {
title: _t("Duplicate"),
body: _t("Are you sure that you would like to copy this record?"),
confirm: () => {
_super.apply(this, arguments);
},
cancel: () => {
// `ConfirmationDialog` needs this prop to display the cancel
// button but we do nothing on cancel.
},
});
},
});