diff --git a/mail_full_expand/README.rst b/mail_full_expand/README.rst index 34da9eb5..b5a5b3e3 100644 --- a/mail_full_expand/README.rst +++ b/mail_full_expand/README.rst @@ -1,11 +1,30 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ================ Mail full expand ================ +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :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 + :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 + :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 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + 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. @@ -19,6 +38,11 @@ receive a mail with predefined width and cannot read it. This module adds a button to all messages to read them in a floating window with their full contents. +**Table of contents** + +.. contents:: + :local: + Usage ===== @@ -27,41 +51,45 @@ To use this module, you need to: * Go to any view with a message thread. * Click the *Fully expand* button (two arrows indicating separate directions). -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/205/8.0 - -For further information, please visit: - -* https://www.odoo.com/forum/help-1 - 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 -`here `_. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Grupo ESOC + Contributors ------------- +~~~~~~~~~~~~ -* Jairo Llopis +* `Tecnativa `_: -Maintainer ----------- + * Jairo Llopis + * Ernesto Tejeda + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit http://odoo-community.org. +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 bfc17969..a7fe1f97 100644 --- a/mail_full_expand/__manifest__.py +++ b/mail_full_expand/__manifest__.py @@ -1,14 +1,13 @@ -# -*- coding: utf-8 -*- -# © 2014-2015 Grupo ESOC +# Copyright 2014-2015 Grupo ESOC # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Mail full expand", "summary": "Expand mail in a big window", - "version": "10.0.1.0.0", + "version": "12.0.1.0.0", "category": "Social Network", - "website": "http://www.grupoesoc.es/", - "author": "Grupo ESOC, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/social", + "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, "installable": True, diff --git a/mail_full_expand/readme/CONTRIBUTORS.rst b/mail_full_expand/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..8bd27416 --- /dev/null +++ b/mail_full_expand/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `Tecnativa `_: + + * Jairo Llopis + * Ernesto Tejeda diff --git a/mail_full_expand/readme/DESCRIPTION.rst b/mail_full_expand/readme/DESCRIPTION.rst new file mode 100644 index 00000000..de3b174b --- /dev/null +++ b/mail_full_expand/readme/DESCRIPTION.rst @@ -0,0 +1,12 @@ +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 +mails. That is useful because it removes lots of distraction, but sometimes it +removes important information. + +Also, messages are narrow to fit in the conversations views, but sometimes you +receive a mail with predefined width and cannot read it. + +This module adds a button to all messages to read them in a floating window +with their full contents. diff --git a/mail_full_expand/readme/USAGE.rst b/mail_full_expand/readme/USAGE.rst new file mode 100644 index 00000000..87cc8f3b --- /dev/null +++ b/mail_full_expand/readme/USAGE.rst @@ -0,0 +1,4 @@ +To use this module, you need to: + +* Go to any view with a message thread. +* Click the *Fully expand* button (two arrows indicating separate directions). diff --git a/mail_full_expand/static/description/index.html b/mail_full_expand/static/description/index.html new file mode 100644 index 00000000..385fb858 --- /dev/null +++ b/mail_full_expand/static/description/index.html @@ -0,0 +1,595 @@ + + + + + + + Mail full expand + + + +
+

Mail full expand

+ + +

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 + mails. That is useful because it removes lots of distraction, but + sometimes it + removes important information.

+

Also, messages are narrow to fit in the conversations views, but + sometimes you + receive a mail with predefined width and cannot read it.

+

This module adds a button to all messages to read them in a floating + window + with their full contents.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  • Go to any view with a message thread.
  • +
  • Click the Fully expand button (two arrows indicating + separate directions). +
  • +
+
+
+

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. +

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Grupo ESOC
  • +
+
+
+

Contributors

+
    +
  • Tecnativa: +
      +
    • Jairo Llopis
    • +
    • Ernesto Tejeda
    • +
    +
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ Odoo Community Association +

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.

+

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 15dd6cd1..a892a4f0 100644 --- a/mail_full_expand/static/src/js/mail_full_expand.js +++ b/mail_full_expand/static/src/js/mail_full_expand.js @@ -1,23 +1,26 @@ -/* © 2014-2015 Grupo ESOC +/* 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"; -var Thread = require('mail.ChatThread'); +var ThreadWidget = require('mail.widget.Thread'); -Thread.include({ +ThreadWidget.include({ events: _.defaults({ - "click .o_full_expand": "on_message_full_expand", - }, Thread.prototype.events), - - on_message_full_expand: function(event) { + "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'); - this.rpc("/web/action/load", { - "action_id": "mail_full_expand.mail_message_action", + this._rpc({ + route: "/web/action/load", + params: { + action_id: "mail_full_expand.mail_message_action", + }, }) .done(function(action) { action.res_id = msg_id; diff --git a/mail_full_expand/static/src/css/mail_full_expand.less b/mail_full_expand/static/src/scss/mail_full_expand.scss similarity index 88% rename from mail_full_expand/static/src/css/mail_full_expand.less rename to mail_full_expand/static/src/scss/mail_full_expand.scss index 93b6ea54..969c093f 100644 --- a/mail_full_expand/static/src/css/mail_full_expand.less +++ b/mail_full_expand/static/src/scss/mail_full_expand.scss @@ -1,4 +1,4 @@ -/* © 2014-2015 Grupo ESOC +/* Copyright 2014-2015 Grupo ESOC * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). */ 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 f76ca394..35d5960f 100644 --- a/mail_full_expand/static/src/xml/mail_full_expand.xml +++ b/mail_full_expand/static/src/xml/mail_full_expand.xml @@ -1,13 +1,14 @@ - diff --git a/mail_full_expand/views/assets.xml b/mail_full_expand/views/assets.xml index 6b3b5b6c..c45a765c 100644 --- a/mail_full_expand/views/assets.xml +++ b/mail_full_expand/views/assets.xml @@ -1,6 +1,6 @@ - @@ -11,7 +11,8 @@ inherit_id="web.assets_backend"> + type="text/scss" + href="/mail_full_expand/static/src/scss/mail_full_expand.scss"/>