| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/web |
| GIT | |
| GIT | https://github.com/OCA/web.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/web/tree/7.0/web_warning_sound |
| VERSION | |
| VERSION | 0.1 |
| CATEGORY | |
| CATEGORY | Custom |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | Yes |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), HacBee UAB |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), HacBee UAB |
| COMMITTERS | |
| COMMITTERS | Alexandre Fayolle, Kiril Vangelovski |
| WEBSITE | |
| WEBSITE | http://www.hbee.eu |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:07:15 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES | |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
This plugin allows to create modules that can play sound files.
It can be used in on_change methods or when raising an orm_except.
The sound files need to be located in the module's static directory:
module_name/static/path/to/audio/file/mysound.wav
Then the web client can access these files using the url path:
/module_name/static/path/to/audio/file/mysound.wav
To use it in on_change methods just add the the url path of the
audio file in the result dictionary under the key 'sound'. Example::
res['sound'] = '/module_name/static/mysound.wav'
res['warning'] = {
'title': _('Cannot do something'),
'message': _('The reason why...'),
}
return res
On orm_except put the url path of the file inside '{{}}' as in this example::
raise orm_except(
'Cannot do something',
'The reason why... {{ sound: /module_name/static/mysound.wav }}'
)
|
No views found for this module.
No models found for this module.