[MIG] Migrated the module in v13.

pull/636/head
Chandresh Thakkar 2020-11-02 20:08:51 +05:30 committed by Bhavesh Odedra
parent c6f3216737
commit c805f24a12
8 changed files with 54 additions and 72 deletions

View File

@ -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 <https://github.com/OCA/social/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 <https://github.com/OCA/social/issues/new?body=module:%20mail_full_expand%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_full_expand%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@ -77,6 +77,8 @@ Contributors
* Jairo Llopis
* Ernesto Tejeda
* Chandresh Thakkar <chandresh.thakkar.serpentcs@gmail.com>
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 <https://github.com/OCA/social/tree/12.0/mail_full_expand>`_ project on GitHub.
This module is part of the `OCA/social <https://github.com/OCA/social/tree/13.0/mail_full_expand>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -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)",

View File

@ -2,3 +2,5 @@
* Jairo Llopis
* Ernesto Tejeda
* Chandresh Thakkar <chandresh.thakkar.serpentcs@gmail.com>

View File

@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/12.0/mail_full_expand"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_full_expand"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/205/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/13.0/mail_full_expand"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_full_expand"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/205/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
<p>Odoo automatically tries to remove blockquotes and signatures from received
@ -403,7 +403,7 @@ with their full contents.</p>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_full_expand%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_full_expand%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@ -422,6 +422,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>Ernesto Tejeda</li>
</ul>
</li>
<li>Chandresh Thakkar &lt;<a class="reference external" href="mailto:chandresh.thakkar.serpentcs&#64;gmail.com">chandresh.thakkar.serpentcs&#64;gmail.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
@ -431,7 +432,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/12.0/mail_full_expand">OCA/social</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/13.0/mail_full_expand">OCA/social</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>

View File

@ -1,32 +1,32 @@
/* Copyright 2014-2015 Grupo ESOC <http://www.grupoesoc.es>
* 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);
});
},
});
});

View File

@ -1,8 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014-2015 Grupo ESOC <http://www.grupoesoc.es>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<!-- Copyright 2014-2015 Grupo ESOC <http://www.grupoesoc.es>License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<template>
<t t-extend="mail.widget.Thread.Message">
<t t-jquery=".o_mail_info" t-operation="append">

View File

@ -1,22 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014-2015 Grupo ESOC <http://www.grupoesoc.es>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<openerp>
<data>
<template id="assets_backend"
name="mail_full_expand assets"
inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet"
type="text/scss"
href="/mail_full_expand/static/src/scss/mail_full_expand.scss"/>
<script type="text/javascript"
src="/mail_full_expand/static/src/js/mail_full_expand.js"/>
</xpath>
</template>
</data>
</openerp>
<!-- Copyright 2014-2015 Grupo ESOC <http://www.grupoesoc.es>License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
<template id="assets_backend" inherit_id="web.assets_backend" name="mail_full_expand assets">
<xpath expr="." position="inside">
<link href="/mail_full_expand/static/src/scss/mail_full_expand.scss" rel="stylesheet" type="text/scss"/>
<script src="/mail_full_expand/static/src/js/mail_full_expand.js" type="text/javascript"/>
</xpath>
</template>
</odoo>

View File

@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014-2015 Grupo ESOC <http://www.grupoesoc.es>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<!-- Copyright 2014-2015 Grupo ESOC <http://www.grupoesoc.es>License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
<record id="mail_message_view_form" model="ir.ui.view">
<field name="name">mail.message.full_expand</field>
@ -14,29 +11,24 @@
<field name="author_id" readonly="1"/>
<field name="email_from" readonly="1"/>
<field name="date" readonly="1"/>
<field name="partner_ids"
widget="many2many_tags"
readonly="1"/>
<field name="partner_ids" readonly="1" widget="many2many_tags"/>
</group>
<h1><field name="subject" readonly="1"/></h1>
<h1>
<field name="subject" readonly="1"/>
</h1>
<field name="body" readonly="1"/>
<field name="attachment_ids"
widget="many2many_binary"
readonly="1"/>
<field name="attachment_ids" readonly="1" widget="many2many_binary"/>
<footer>
<button string="Close" class="btn-secondary" special="cancel"/>
<button class="btn-secondary" special="cancel" string="Close"/>
</footer>
</form>
</field>
</record>
<record id="mail_message_action" model="ir.actions.act_window">
<field name="name">Read Full Email</field>
<field name="res_model">mail.message</field>
<field name="src_model">mail.message</field>
<field name="type">ir.actions.act_window</field>
<field name="view_id" ref="mail_message_view_form"/>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>