Skip to content

Commit

Permalink
ajustes no redirect da notificação
Browse files Browse the repository at this point in the history
  • Loading branch information
felipepaloschi committed Apr 30, 2018
1 parent d670e52 commit aeb7bf7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions br_base/static/src/js/res_users_notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
},
});
},
Expand Down

0 comments on commit aeb7bf7

Please sign in to comment.