mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_copy_confirm: black, isort, prettier
This commit is contained in:
committed by
Miquel Raïch
parent
ce66091374
commit
c1acd004eb
@@ -1,15 +1,15 @@
|
||||
// Copyright (C) 2018 DynApps <http://www.dynapps.be>
|
||||
// @author Stefan Rijnhart <stefan@opener.amsterdam>
|
||||
// License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
openerp.web_copy_confirm = function(instance) {
|
||||
openerp.web_copy_confirm = function (instance) {
|
||||
instance.web.FormView.include({
|
||||
on_button_duplicate: function() {
|
||||
on_button_duplicate: function () {
|
||||
var self = this;
|
||||
this.has_been_loaded.done(function() {
|
||||
this.has_been_loaded.done(function () {
|
||||
if (confirm(_t("Do you really want to copy this record?"))) {
|
||||
return self._super.apply(self, arguments);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user