From aeb7bf79592c694d253ee3d6b4d10638f3fa3d54 Mon Sep 17 00:00:00 2001 From: Felipe Date: Mon, 30 Apr 2018 14:00:04 -0300 Subject: [PATCH] =?UTF-8?q?ajustes=20no=20redirect=20da=20notifica=C3=A7?= =?UTF-8?q?=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- br_base/static/src/js/res_users_notify.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/br_base/static/src/js/res_users_notify.js b/br_base/static/src/js/res_users_notify.js index 0dd0326da..70c1363d3 100644 --- a/br_base/static/src/js/res_users_notify.js +++ b/br_base/static/src/js/res_users_notify.js @@ -16,16 +16,15 @@ odoo.define('web_notify.WebClient', function (require) { this.events = _.extend(this.events || {}, { 'click .go_to_activity': function () { var self = this; - this._rpc({ - route: '/web/action/load', - params: { - action_id: this.redirect.action_id, - context: this.redirect.context - }, - }) - .then(function (result) { - self.do_action(result); - }); + this.do_action({ + name: this.redirect.name, + type: 'ir.actions.act_window', + res_model: this.redirect.model, + target: 'current', + views: [[false, this.redirect.view], [false, 'form']], + domain: this.redirect.domain, + context: this.redirect.context + }); }, }); },