From fa5d6b8b98f2077c29d59686fc660be80bb2ae21 Mon Sep 17 00:00:00 2001 From: Chandresh Thakkar Date: Mon, 2 Nov 2020 20:08:51 +0530 Subject: [PATCH] [MIG] Migrated the module in v13. --- mail_full_expand/README.rst | 12 +++-- mail_full_expand/__manifest__.py | 2 +- mail_full_expand/readme/CONTRIBUTORS.rst | 2 + .../static/description/index.html | 7 +-- .../static/src/js/mail_full_expand.js | 46 +++++++++---------- .../static/src/xml/mail_full_expand.xml | 5 +- mail_full_expand/views/assets.xml | 30 ++++-------- mail_full_expand/views/mail_full_expand.xml | 22 +++------ 8 files changed, 54 insertions(+), 72 deletions(-) diff --git a/mail_full_expand/README.rst b/mail_full_expand/README.rst index 0c4034c50..a9b6d2811 100644 --- a/mail_full_expand/README.rst +++ b/mail_full_expand/README.rst @@ -14,13 +14,13 @@ Mail full expand :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github - :target: https://github.com/OCA/social/tree/12.0/mail_full_expand + :target: https://github.com/OCA/social/tree/13.0/mail_full_expand :alt: OCA/social .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_full_expand + :target: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_full_expand :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/205/12.0 + :target: https://runbot.odoo-community.org/runbot/205/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -57,7 +57,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -77,6 +77,8 @@ Contributors * Jairo Llopis * Ernesto Tejeda +* Chandresh Thakkar + Maintainers ~~~~~~~~~~~ @@ -90,6 +92,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/social `_ project on GitHub. +This module is part of the `OCA/social `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_full_expand/__manifest__.py b/mail_full_expand/__manifest__.py index df775491e..f0b55fd1d 100644 --- a/mail_full_expand/__manifest__.py +++ b/mail_full_expand/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Mail full expand", "summary": "Expand mail in a big window", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Social Network", "website": "https://github.com/OCA/social", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/mail_full_expand/readme/CONTRIBUTORS.rst b/mail_full_expand/readme/CONTRIBUTORS.rst index 8bd274162..9fb7940fa 100644 --- a/mail_full_expand/readme/CONTRIBUTORS.rst +++ b/mail_full_expand/readme/CONTRIBUTORS.rst @@ -2,3 +2,5 @@ * Jairo Llopis * Ernesto Tejeda + +* Chandresh Thakkar diff --git a/mail_full_expand/static/description/index.html b/mail_full_expand/static/description/index.html index 2c1436024..4788ecd04 100644 --- a/mail_full_expand/static/description/index.html +++ b/mail_full_expand/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

This module was written to extend the functionality of messaging to support expanding messages in a big window and allow you to read its full content.

Odoo automatically tries to remove blockquotes and signatures from received @@ -403,7 +403,7 @@ with their full contents.

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -422,6 +422,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Ernesto Tejeda
  • +
  • Chandresh Thakkar <chandresh.thakkar.serpentcs@gmail.com>
  • @@ -431,7 +432,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    -

    This module is part of the OCA/social project on GitHub.

    +

    This module is part of the OCA/social project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    diff --git a/mail_full_expand/static/src/js/mail_full_expand.js b/mail_full_expand/static/src/js/mail_full_expand.js index a892a4f0d..452205cdb 100644 --- a/mail_full_expand/static/src/js/mail_full_expand.js +++ b/mail_full_expand/static/src/js/mail_full_expand.js @@ -1,32 +1,32 @@ /* Copyright 2014-2015 Grupo ESOC * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). */ - odoo.define('mail_full_expand.expand', function (require) { -"use strict"; +odoo.define('mail_full_expand.expand', function (require) { + "use strict"; -var ThreadWidget = require('mail.widget.Thread'); + var ThreadWidget = require('mail.widget.Thread'); -ThreadWidget.include({ - events: _.defaults({ - "click .o_full_expand": "_onClickMessageFullExpand", - }, ThreadWidget.prototype.events), + ThreadWidget.include({ + events: _.defaults({ + "click .o_full_expand": "_onClickMessageFullExpand", + }, ThreadWidget.prototype.events), - _onClickMessageFullExpand: function(event) { - // Get the action data and execute it to open the full view - var do_action = this.do_action, - msg_id = $(event.currentTarget).data('message-id'); + _onClickMessageFullExpand: function (event) { + // Get the action data and execute it to open the full view + var do_action = this.do_action, + msg_id = $(event.currentTarget).data('message-id'); - this._rpc({ - route: "/web/action/load", - params: { - action_id: "mail_full_expand.mail_message_action", - }, - }) - .done(function(action) { - action.res_id = msg_id; - do_action(action); - }); - } -}); + this._rpc({ + route: "/web/action/load", + params: { + action_id: "mail_full_expand.mail_message_action", + }, + }) + .then(function (action) { + action.res_id = msg_id; + do_action(action); + }); + }, + }); }); diff --git a/mail_full_expand/static/src/xml/mail_full_expand.xml b/mail_full_expand/static/src/xml/mail_full_expand.xml index 35d5960f2..d5c887874 100644 --- a/mail_full_expand/static/src/xml/mail_full_expand.xml +++ b/mail_full_expand/static/src/xml/mail_full_expand.xml @@ -1,8 +1,5 @@ - - - +