Nehal Panchal (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-576326-nep into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576326-nep/+merge/112527

Hello, 

If specify the language as "${object.partner_id.lang or ''}" in Email template, 
Email template is not being translated in the customer's/supplier's language.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576326-nep/+merge/112527
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-576326-nep.
=== modified file 'email_template/wizard/mail_compose_message.py'
--- email_template/wizard/mail_compose_message.py	2012-04-12 12:34:50 +0000
+++ email_template/wizard/mail_compose_message.py	2012-06-28 09:50:27 +0000
@@ -98,6 +98,7 @@
                     ctx = context.copy()
                     if template.lang:
                         ctx['lang'] = self.render_template(cr, uid, template.lang, template.model, res_id, context)
+                        values['body_text'] = self.render_template(cr, uid, template.body_text, template.model, res_id, ctx) or ''
                     service = netsvc.LocalService(report_service)
                     (result, format) = service.create(cr, uid, [res_id], {'model': template.model}, ctx)
                     result = base64.b64encode(result)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to