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.

26 lines
857 B

  1. /* © 2014-2015 Grupo ESOC <http://www.grupoesoc.es>
  2. * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  3. */
  4. openerp.mail_full_expand = function (instance) {
  5. instance.mail.ThreadMessage.include({
  6. bind_events: function () {
  7. this._super.apply(this, arguments);
  8. this.$('.oe_full_expand').on('click', this.on_message_full_expand);
  9. },
  10. on_message_full_expand: function() {
  11. // Get the action data and execute it to open the full view
  12. var do_action = this.do_action,
  13. msg_id = this.id;
  14. this.rpc("/web/action/load", {
  15. "action_id": "mail_full_expand.act_window",
  16. })
  17. .done(function(action) {
  18. action.res_id = msg_id;
  19. do_action(action);
  20. });
  21. }
  22. });
  23. };