[FIX] mail: this.attachment_ids to self.attachment_ids
bzr revid: chm@openerp.com-20130228161153-74ialj6rgay2gwj9
This commit is contained in:
parent
81e7de3e48
commit
35f40a8e64
|
@ -518,7 +518,7 @@ openerp.mail = function (session) {
|
|||
'default_composition_mode': default_composition_mode,
|
||||
'default_parent_id': self.id,
|
||||
'default_body': mail.ChatterUtils.get_text2html(self.$el ? (self.$el.find('textarea:not(.oe_compact)').val() || '') : ''),
|
||||
'default_attachment_ids': _.map(this.attachment_ids, function (file) {return file.id;}),
|
||||
'default_attachment_ids': _.map(self.attachment_ids, function (file) {return file.id;}),
|
||||
'default_partner_ids': partner_ids,
|
||||
};
|
||||
if (default_composition_mode != 'reply' && self.context.default_model && self.context.default_res_id) {
|
||||
|
|
Loading…
Reference in New Issue