Skip to content

Commit

Permalink
[FIX] mail: Fix crash when adding recipient on mails
Browse files Browse the repository at this point in the history
When adding more than one recipients on mails a traceback appears.
This was caused because instead of doing a name_get by providing the partners ids as a list, we send them as arguments.
Which wasn't valid because name_get except a single argument.

opw #804691
  • Loading branch information
tbe-odoo committed Jan 10, 2018
1 parent 4c410ee commit d9f1e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mail/static/src/js/many2many_tags_email.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BasicModel.include({
def = self._rpc({
model: list.model,
method: 'name_get',
args: list.res_ids,
args: [list.res_ids],
context: record.getContext({fieldName: fieldName}),
});
}
Expand Down

0 comments on commit d9f1e67

Please sign in to comment.