Patching an existing js function but still show up
问题 I use odoo11. I have a requirement that is to change the confirm content when click delete. I found this from a js file called basic_controller.js on web addons var BasicController = AbstractController.extend(FieldManagerMixin, { ... _deleteRecords: function (ids) { var self = this; function doIt() { return self.model .deleteRecords(ids, self.modelName) .then(self._onDeletedRecords.bind(self, ids)); } if (this.confirmOnDelete) { Dialog.confirm(this, _t("Are you sure you want to delete this