diff options
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 | 33 |
1 files changed, 33 insertions, 0 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 new file mode 100644 index 00000000000..0eef37791a6 --- /dev/null +++ b/addons/mail/static/src/models/channel_command/channel_command.js @@ -0,0 +1,33 @@ +odoo.define('mail/static/src/models/channel_command/channel_command.js', function (require) { +'use strict'; + +const { registerNewModel } = require('mail/static/src/model/model_core.js'); +const { attr } = require('mail/static/src/model/model_field.js'); + +function factory(dependencies) { + + class ChannelCommand extends dependencies['mail.model'] {} + + ChannelCommand.fields = { + /** + * FIXME use this value task-2343850 + */ + channel_types: attr(), + /** + * The command that will be executed. + */ + help: attr(), + /** + * The keyword to use a specific command. + */ + name: attr(), + }; + + ChannelCommand.modelName = 'mail.channel_command'; + + return ChannelCommand; +} + +registerNewModel('mail.channel_command', factory); + +}); |
