You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
607 B

  1. // Copyright 2017 - 2018 Modoolar <info@modoolar.com>
  2. // License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. odoo.define('web_ir_actions_act_view_reload.ir_actions_act_view_reload', function (require) {
  4. "use strict";
  5. var ActionManager = require('web.ActionManager');
  6. ActionManager.include({
  7. ir_actions_act_view_reload: function (action, options) {
  8. if (this.inner_widget && this.inner_widget.active_view && this.inner_widget.active_view.controller)
  9. this.inner_widget.active_view.controller.reload();
  10. return $.when();
  11. }
  12. });
  13. });