25 lines
840 B
JavaScript
25 lines
840 B
JavaScript
/* @odoo-module */
|
|
//
|
|
// This file is meant to regroup your javascript code. You can either copy/past
|
|
// any code that should be executed on each page loading or write your own
|
|
// taking advantage of the Odoo framework to create new behaviors or modify
|
|
// existing ones. For example, doing this will greet any visitor with a 'Hello,
|
|
// world !' message in a popup:
|
|
//
|
|
/*
|
|
import { ConfirmationDialog } from '@web/core/confirmation_dialog/confirmation_dialog';
|
|
import publicWidget from '@web/legacy/js/public/public_widget';
|
|
|
|
publicWidget.registry.HelloWorldPopup = publicWidget.Widget.extend({
|
|
selector: '#wrapwrap',
|
|
|
|
init() {
|
|
this.dialog = this.bindService("dialog");
|
|
},
|
|
start() {
|
|
this.dialog.add(ConfirmationDialog, { body: 'Hello World' });
|
|
return this._super.apply(this, arguments);
|
|
},
|
|
});
|
|
*/
|