Thibault Delavallée (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-fix-chatter-switch-form-chm into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-fix-chatter-switch-form-chm/+merge/134129
Fix a bug when switching records in form view:
- when simply switching, old messages were concatenated
- when deleting a record, a crash occured
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-fix-chatter-switch-form-chm/+merge/134129
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-fix-chatter-switch-form-chm.
=== modified file 'mail/static/src/js/mail.js'
--- mail/static/src/js/mail.js 2012-11-12 18:39:19 +0000
+++ mail/static/src/js/mail.js 2012-11-13 15:30:37 +0000
@@ -1530,7 +1530,6 @@
'display_indented_thread': -1,
'show_reply_button': false,
'show_read_unread_button': false,
- 'show_compose_message': this.view.is_action_enabled('edit'),
'show_compact_message': 1,
}, this.node.params);
@@ -1556,9 +1555,10 @@
return;
}
- this.node.params = _.extend({
- 'message_ids': this.getParent().fields.message_ids ? this.getParent().fields.message_ids.get_value() : undefined,
- }, this.node.params);
+ this.node.params = _.extend(this.node.params, {
+ 'message_ids': this.get_value(),
+ 'show_compose_message': this.view.is_action_enabled('edit'),
+ });
this.node.context = {
'default_res_id': this.view.datarecord.id || false,
'default_model': this.view.model || false,
@@ -1571,7 +1571,6 @@
// create and render Thread widget
this.root = new mail.Widget(this, _.extend(this.node, {
'domain' : (this.domain || []).concat([['model', '=', this.view.model], ['res_id', '=', this.view.datarecord.id]]),
-
}));
return this.root.replace(this.$('.oe_mail-placeholder'));
_______________________________________________
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