[CLEAN] removed a commented statement, fixed a var name in js.é

bzr revid: tde@openerp.com-20121115124931-w20igi8qk66uvnj0
This commit is contained in:
Thibault Delavallée
2012-11-15 13:49:31 +01:00
parent 81d4467c8f
commit da9951baf9
2 changed files with 1 additions and 2 deletions
@@ -154,7 +154,6 @@ class mail_compose_message(osv.TransientModel):
'attachment_ids': [(6, 0, [att.id for att in record.attachment_ids])]
}
template_id = email_template.create(cr, uid, values, context=context)
# record.write({'template_id': template_id, 'use_template': True})
record.write(record.onchange_template_id(True, template_id, record.composition_mode, record.model, record.res_id)['value'])
return _reopen(self, record.id, record.model)
+1 -1
View File
@@ -599,7 +599,7 @@ openerp.mail = function (session) {
]).done(function (record) {
var thread = self.parent_thread;
if (self.options.display_indented_thread < self.thread_level && thread.parent_message) {
var hread = thread.parent_message.parent_thread;
var thread = thread.parent_message.parent_thread;
}
var root = thread == self.options.root_thread;
// create object and attach to the thread object