[FIX] email_template: on_change values for m2m can be list of ids, not necessarily commands.

bzr revid: tde@openerp.com-20130308124341-ih0f4us81cffer7m
This commit is contained in:
Thibault Delavallée
2013-03-08 13:43:41 +01:00
parent 5ebf390f96
commit 22bba15ccd
@@ -141,7 +141,7 @@ class mail_compose_message(osv.TransientModel):
# legacy template behavior: void values do not erase existing values and the
# related key is removed from the values dict
if partner_ids:
values['partner_ids'] = [(6, 0, list(partner_ids))]
values['partner_ids'] = list(partner_ids)
return values