Browse Source

Merge branch '8.0' of /home/iii/addons-yelizariev/../mail_fix_empty_body into 8.0

pull/1/head
Ildar Nasyrov 9 years ago
parent
commit
00ee784b11
  1. 6
      mail_fix_empty_body/README.rst
  2. 1
      mail_fix_empty_body/__init__.py
  3. 14
      mail_fix_empty_body/__openerp__.py
  4. 10
      mail_fix_empty_body/models.py
  5. BIN
      mail_fix_empty_body/static/description/icon.png
  6. 65
      mail_fix_empty_body/static/description/index.html
  7. BIN
      mail_fix_empty_body/static/description/receive-false.png
  8. BIN
      mail_fix_empty_body/static/description/receive-ok.png
  9. BIN
      mail_fix_empty_body/static/description/send.png

6
mail_fix_empty_body/README.rst

@ -0,0 +1,6 @@
Fix "False" in empty email body
===============================
Description: https://apps.odoo.com/apps/modules/8.0/mail_fix_empty_body/
Tested on Odoo 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d

1
mail_fix_empty_body/__init__.py

@ -0,0 +1 @@
import models

14
mail_fix_empty_body/__openerp__.py

@ -0,0 +1,14 @@
{
'name' : 'Fix "False" in empty email body',
'version' : '1.0.0',
'author' : 'IT-Projects LLC, Ivan Yelizariev',
'license': 'GPL-3',
'category': 'Social Network',
'website' : 'https://twitter.com/yelizariev',
'price': 9.00,
'currency': 'EUR',
'depends' : ['mail'],
'data':[
],
'installable': True
}

10
mail_fix_empty_body/models.py

@ -0,0 +1,10 @@
from openerp import api, models, fields, SUPERUSER_ID
class mail_compose_message(models.TransientModel):
_inherit = 'mail.compose.message'
def get_mail_values(self, cr, uid, wizard, res_ids, context=None):
res = super(mail_compose_message, self).get_mail_values(cr, uid, wizard, res_ids, context)
for id, d in res.iteritems():
d['body'] = d.get('body') or ''
return res

BIN
mail_fix_empty_body/static/description/icon.png

After

Width: 100  |  Height: 100  |  Size: 2.1 KiB

65
mail_fix_empty_body/static/description/index.html

@ -0,0 +1,65 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Fix "False" in empty email body</h2>
<h3 class="oe_slogan">Feel free to send emails without body</h3>
</div>
<div class="oe_span8">
<p class="oe_mt32">
Some time you need to send email with empty body. <br/>E.g. to send some file to partner.
</p>
</div>
<div class="oe_span8 oe_right">
<div class="oe_demo oe_picture oe_screenshot">
<img src="send.png?1"/>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<img src="receive-false.png"/>
</div>
</div>
<div class="oe_span6">
<p class="oe_mt32">
There is a bug in odoo -- it sends "False" if email body if empty.
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span6">
<p class="oe_mt32">
This module just fix the issue.
</p>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<img src="receive-ok.png"/>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2>Need our service?</h2>
<p class="oe_mt32">Contact us by <a href="mailto:it@it-projects.info">email</a> or fill out <a href="https://www.it-projects.info/page/website.contactus " target="_blank">request form</a></p>
<ul>
<li><a href="mailto:it@it-projects.info">it@it-projects.info <i class="fa fa-envelope-o"></i></a></li>
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">
https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
</ul>
</div>
</div>
</section>

BIN
mail_fix_empty_body/static/description/receive-false.png

After

Width: 366  |  Height: 276  |  Size: 18 KiB

BIN
mail_fix_empty_body/static/description/receive-ok.png

After

Width: 350  |  Height: 280  |  Size: 16 KiB

BIN
mail_fix_empty_body/static/description/send.png

After

Width: 581  |  Height: 400  |  Size: 31 KiB

Loading…
Cancel
Save