diff options
| author | Julien Giannone <jgi@odoo.com> | 2020-09-22 14:01:40 +0000 |
|---|---|---|
| committer | Julien Giannone <jgi@odoo.com> | 2020-10-23 13:42:42 +0000 |
| commit | caaf436bdf1f72634bf8a83672c6f683e0013713 (patch) | |
| tree | c6f6a62b3d82c0a85ce97e4bbae35e0e0738ad38 /addons/mail/static/src/models/channel_command/channel_command.js | |
| parent | c932daf75a668630fc44e35c01a1b02f021569bc (diff) | |
[FIX] mail: filter commands used in composer based on channel type
closes odoo/odoo#60052
Task-id: 2343850
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/channel_command/channel_command.js')
| -rw-r--r-- | addons/mail/static/src/models/channel_command/channel_command.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/mail/static/src/models/channel_command/channel_command.js b/addons/mail/static/src/models/channel_command/channel_command.js index 0eef37791a6..12054c1a35b 100644 --- a/addons/mail/static/src/models/channel_command/channel_command.js +++ b/addons/mail/static/src/models/channel_command/channel_command.js @@ -10,7 +10,10 @@ function factory(dependencies) { ChannelCommand.fields = { /** - * FIXME use this value task-2343850 + * Determines on which channel types `this` is available. + * Type of the channel (e.g. 'chat', 'channel' or 'groups') + * This field should contain an array when filtering is desired. + * Otherwise, it should be undefined when all types are allowed. */ channel_types: attr(), /** |
