Browse Source

[IMP] upload mail_fix_empty_body

pull/1/head
Ivan Yelizariev 10 years ago
commit
2f049b2878
  1. 1
      __init__.py
  2. 15
      __openerp__.py
  3. 10
      models.py

1
__init__.py

@ -0,0 +1 @@
import models

15
__openerp__.py

@ -0,0 +1,15 @@
{
'name' : 'Fix "False" in empty email',
'version' : '1.0.0',
'author' : 'Ivan Yelizariev',
'category' : 'Sale',
'website' : 'https://it-projects.info',
'description': """
Tested on Odoo 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d
""",
'depends' : ['mail'],
'data':[
],
'installable': True
}

10
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
Loading…
Cancel
Save