Skip to content
Snippets Groups Projects
Commit 7ed0bd25 authored by RomainLibert's avatar RomainLibert
Browse files

[FIX] sms: avoid crashing when no res_model of res_ids


sms_composer could crash in case you didn't pass it the active_id,
active_ids context keys or don't call the default_get

In that case it would try to access `self.env[False]` which would crash
in the `_compute_recipients_count`

We also have to ensure that we have a default value for `self.res_ids`
because `literal_eval(False)` will crash

closes odoo/odoo#38461

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 2c50b663
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment