Browse Source

[ADD]:New Module In Discuss

pull/11/merge
SHEREEF PT 8 years ago
parent
commit
3baa6cdb24
  1. 28
      send_message_direct_composer/README.rst
  2. 22
      send_message_direct_composer/__init__.py
  3. 39
      send_message_direct_composer/__openerp__.py
  4. BIN
      send_message_direct_composer/static/description/banner.jpg
  5. BIN
      send_message_direct_composer/static/description/cybro_logo.png
  6. BIN
      send_message_direct_composer/static/description/direct_composer_1.png
  7. BIN
      send_message_direct_composer/static/description/direct_composer_2.png
  8. BIN
      send_message_direct_composer/static/description/icon.png
  9. 53
      send_message_direct_composer/static/description/index.html
  10. 10
      send_message_direct_composer/static/src/js/direct_composer.js
  11. 10
      send_message_direct_composer/views/direct_composer.xml

28
send_message_direct_composer/README.rst

@ -0,0 +1,28 @@
===============================
Send Message Direct Composer v8
===============================
This module open a pop-up email composer, when pressing the 'Send a message' button.
Installation
============
Just select it from available modules to install it, there is no need to extra installations.
Configuration
=============
Nothing to configure.
Features
========
* When click the button, use a full-featured HTML editor to compose emails instead of in-line plain textbox.
* No need for excess mouse clicks
Credits
=======
Developer: Aswani pc @ cybrosys
Guidance: Nilmar Shereef @ cybrosys, shereef@cybrosys.in

22
send_message_direct_composer/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Nilmar Shereef(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

39
send_message_direct_composer/__openerp__.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Nilmar Shereef(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': "Email Composer Pop-up",
'version': '8.0.1.0.0',
'summary': """Open a Pop-up Email Composer for All 'Send Message' """,
'description': """Open a Pop-up Email Composer for All 'Send Message' """,
'category': 'Discuss',
'author': "Cybrosys Techno Solutions",
'company': "Cybrosys Techno Solutions",
'website': "http://www.cybrosys.com",
'depends': ['base', 'mail'],
'data': ['views/direct_composer.xml'],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

BIN
send_message_direct_composer/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
send_message_direct_composer/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
send_message_direct_composer/static/description/direct_composer_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
send_message_direct_composer/static/description/direct_composer_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
send_message_direct_composer/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

53
send_message_direct_composer/static/description/index.html

@ -0,0 +1,53 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Email Composer Pop-up Box</h2>
<h3 class="oe_slogan">Separate Mail Composer Window for 'Send Message' Button Click</h3>
<h4 class="oe_slogan">Cybrosys Technologies , www.cybrosys.com</h4>
</div>
<div class="oe_row oe_spaced">
<h4><p style="margin-left: 42px;">Major Features:</p></h4>
<ul>
<li style="list-style:none !important;"><span style="color:green;"> &#9733;</span>&nbsp;&nbsp; Full-Featured HTML Editor.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9733;</span>&nbsp;&nbsp; See Entire Mail in a Window.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9733;</span>&nbsp;&nbsp; Forget About In-line Plain Textbox.</li>
</ul>
</div>
</section>
<section class="oe_container oe_dark">
<h3 style="margin-top: 42px;" class="oe_slogan">Normal Case:</h3>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="direct_composer_2.png">
</div>
</div>
</div>
</section>
<section class="oe_container">
<h3 style="margin-top: 42px;" class="oe_slogan">Installed Case:</h3>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="direct_composer_1.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;" href="http://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;"
href="http://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;"
href="http://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
</section>

10
send_message_direct_composer/static/src/js/direct_composer.js

@ -0,0 +1,10 @@
openerp.send_message_direct_composer = function (session) {
var mail = session.mail;
mail.ThreadComposeMessage = mail.ThreadComposeMessage.extend({
bind_events: function () {
var self = this;
this._super();
this.$('.oe_compose_post').on('click', _.bind( this.on_compose_fullmail, this, this.id ? 'reply' : 'comment'));
},
});
};

10
send_message_direct_composer/views/direct_composer.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="assets_backend" name="mail assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/send_message_direct_composer/static/src/js/direct_composer.js"/>
</xpath>
</template>
</data>
</openerp>
Loading…
Cancel
Save