Skip to content

Commit

Permalink
crnd_web_action_reload refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rymar.roman committed Jan 20, 2022
1 parent 46fcfa6 commit adcc01b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crnd_web_action_reload/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import ir_actions_reload
from . import ir_actions_reload_view
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@


class IrActionsReload(models.Model):
_name = 'ir.actions.reload'
_name = 'ir.actions.reload.view'
_inherit = 'ir.actions.actions'
2 changes: 1 addition & 1 deletion crnd_web_action_reload/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_ir_actions_reload_system,ir_actions_reload_system,model_ir_actions_reload,base.group_system,1,1,1,1
access_ir_actions_reload_view_system,ir_actions_reload_view_system,model_ir_actions_reload_view,base.group_system,1,1,1,1
2 changes: 1 addition & 1 deletion crnd_web_action_reload/static/src/js/action_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ odoo.define("crnd_web_action_reload.ActionManager", function (require) {
require('web.ActionManager').include({

_handleAction: function (action) {
if (action.type === "ir.actions.reload") {
if (action.type === "ir.actions.reload.view") {
var actModel = action.context.active_model;
var currentController = this.getCurrentController();
var currentDialogController =
Expand Down

0 comments on commit adcc01b

Please sign in to comment.