summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/channel_command/channel_command.js
diff options
context:
space:
mode:
authorJulien Giannone <jgi@odoo.com>2020-09-22 14:01:40 +0000
committerJulien Giannone <jgi@odoo.com>2020-10-23 13:42:42 +0000
commitcaaf436bdf1f72634bf8a83672c6f683e0013713 (patch)
treec6f6a62b3d82c0a85ce97e4bbae35e0e0738ad38 /addons/mail/static/src/models/channel_command/channel_command.js
parentc932daf75a668630fc44e35c01a1b02f021569bc (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.js5
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(),
/**