diff options
| author | RomainLibert <rli@odoo.com> | 2019-10-11 07:39:29 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-11 21:48:11 +0000 |
| commit | e5f41040a108ea227cd592bf2a5d07b346cf032e (patch) | |
| tree | bfb5259167bdd9531df64717d199803a1baf8d68 /doc/reference/javascript_reference.rst | |
| parent | 25004a958d699a1d85295e7b0213d29bd41ce3ee (diff) | |
[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#38545
X-original-commit: 7ed0bd258d8a744716101d89cfa0bdf0f7990fb5
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
