diff options
| author | Qiuyu (QHO) <qho@odoo.com> | 2021-03-11 13:21:17 +0000 |
|---|---|---|
| committer | Qiuyu (QHO) <qho@odoo.com> | 2021-03-11 13:21:17 +0000 |
| commit | f9d0614f28625bd8dfdd5710e465b65935ad5d38 (patch) | |
| tree | 66acb91cd2bcd2656d8ddd53519d181eca25cf10 /addons/mail | |
| parent | 4c47e023ece338e7b585dbb8f14db2355a902ff2 (diff) | |
[FIX] mail: fix array check in model_field
closes odoo/odoo#67683
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail')
| -rw-r--r-- | addons/mail/static/src/model/model_field.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/model/model_field.js b/addons/mail/static/src/model/model_field.js index 073d6d60c05..bec728e0527 100644 --- a/addons/mail/static/src/model/model_field.js +++ b/addons/mail/static/src/model/model_field.js @@ -342,7 +342,7 @@ class ModelField { // single command given return newVal.execute(this, record, options); } - if (typeof newVal instanceof Array && newVal[0] instanceof FieldCommand) { + if (newVal instanceof Array && newVal[0] instanceof FieldCommand) { // multi command given let hasChanged = false; for (const command of newVal) { |
