Browse Source

Merge pull request #127 from yelizariev/mail-addons-8.0-mail_private-update

[FIX] uncheck partners from compute_emails_from
pull/50/head
Ivan Yelizariev 8 years ago
committed by GitHub
parent
commit
1c3cf23139
  1. 6
      mail_private/static/src/js/mail_private.js

6
mail_private/static/src/js/mail_private.js

@ -136,6 +136,12 @@ openerp.mail_private = function(instance){
else { else {
suggested_partners.resolve({}); suggested_partners.resolve({});
} }
// uncheck partners from compute_emails_from
_.each(this.recipients, function(r){
if (!r.partner_id){
r.checked = false;
}
})
// when call for suggested partners finished: re-render the widget // when call for suggested partners finished: re-render the widget
$.when(suggested_partners).pipe(function (additional_recipients) { $.when(suggested_partners).pipe(function (additional_recipients) {

Loading…
Cancel
Save