mirror of
https://github.com/bringout/oca-web.git
synced 2026-04-20 01:52:01 +02:00
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:
parent
af56672c08
commit
53fddf87c8
2469 changed files with 101716 additions and 0 deletions
|
|
@ -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.
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue