[IMP] mail: add breadcrumb from inbox
bzr revid: chm@openerp.com-20130527121823-tfjevhu5zl5at4ar
This commit is contained in:
parent
f38ef93a05
commit
c61329943a
|
@ -967,6 +967,24 @@ openerp.mail = function (session) {
|
||||||
this.$('.oe_reply').on('click', this.on_message_reply);
|
this.$('.oe_reply').on('click', this.on_message_reply);
|
||||||
this.$('.oe_star').on('click', this.on_star);
|
this.$('.oe_star').on('click', this.on_star);
|
||||||
this.$('.oe_msg_vote').on('click', this.on_vote);
|
this.$('.oe_msg_vote').on('click', this.on_vote);
|
||||||
|
this.$('.oe_mail_action_model').on('click', this.on_record_clicked);
|
||||||
|
},
|
||||||
|
|
||||||
|
on_record_clicked: function (event) {
|
||||||
|
event.stopPropagation();
|
||||||
|
var state = {
|
||||||
|
'model': this.model,
|
||||||
|
'id': this.res_id,
|
||||||
|
'title': this.record_name
|
||||||
|
};
|
||||||
|
session.webclient.action_manager.do_push_state(state);
|
||||||
|
this.do_action({
|
||||||
|
res_model: state.model,
|
||||||
|
res_id: state.id,
|
||||||
|
type: 'ir.actions.act_window',
|
||||||
|
views: [[false, 'form']]
|
||||||
|
});
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
/* Call the on_compose_message on the thread of this message. */
|
/* Call the on_compose_message on the thread of this message. */
|
||||||
|
|
Loading…
Reference in New Issue