Commit f00c15b9 authored by Jose Antonio Morales Ponce [Vauxoo]'s avatar Jose Antonio Morales Ponce [Vauxoo]
Browse files

[IMP] Rename module and change description 
parent e964c031
......@@ -19,28 +19,28 @@
#
##############################################################################
{
'name' : 'Custom Templates',
'name' : 'Email Template without Sanitized',
'version' : '0.1',
'author' : 'Vauxoo',
'category' : '',
'description' : """
Custom Templates
Email Templates Without Sanitize
================
- When you need to create a custom template with the email.template model
and add some cool features to your template at the moment that you try to
send it you see that the sanitize method of openerp changes all your
template and became to a different template. To avoid this problem we
created this module.
and add some cool features to your template at the moment that you try to
send it you see that the sanitize method of openerp changes all your
template and became to a different template. To avoid this problem we
created this module.
How to Use
==========
- In the template view we add 2 new fields in the Advanced page. The first
field is a boolean, used to define the template like important, this makes
that template's content will be not sanitize.
field is a boolean, used to define the template like important, this makes
that template's content will not be sanitize.
- The second field is a string, where you define the name of the attachment
generated when you send your custom template, because the custom template
will generate an attachment and puts it in the message post of the model
generated when you send your custom template, because the custom template
will generate an attachment and puts it in the message post of the model
""",
'website': 'http://www.vauxoo.com',
'images' : [],
......
......@@ -103,7 +103,7 @@ class mail_compose_message(osv.TransientModel):
# post the message
subtype = 'mail.mt_comment'
post_values.update({'body': ''})
msg_id = active_model_pool.message_post(cr, uid, [res_id], type='comment', subtype=subtype, context=context, **post_values)
msg_id = active_model_pool.message_post(cr, uid, [res_id], type='notification', subtype=subtype, context=context, **post_values)
attach_ids = ir_attachment_obj.search(cr, uid,
[('res_model', '=', wizard.model),
('res_id', '=', res_id),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment