Browse Source

pep8

pull/36/head
Kiril Vangelovski 10 years ago
parent
commit
2747f30e10
  1. 4
      web_warning_sound/__openerp__.py

4
web_warning_sound/__openerp__.py

@ -24,7 +24,7 @@ Then the web client can access these files using the url path:
To use it in on_change methods just add the the url path of the 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:: audio file in the result dictionary under the key 'sound'. Example::
res['sound'] = '/module_name/static/path/to/audio/file/mysound.wav'
res['sound'] = '/module_name/static/mysound.wav'
res['warning'] = { res['warning'] = {
'title': _('Cannot do something'), 'title': _('Cannot do something'),
'message': _('The reason why...'), 'message': _('The reason why...'),
@ -35,7 +35,7 @@ On orm_except put the url path of the file inside '{{}}' as in this example::
raise orm_except( raise orm_except(
'Cannot do something', 'Cannot do something',
'The reason why... {{ sound: /module_name/static/path/to/audio/file/mysound.wav }}'
'The reason why... {{ sound: /module_name/static/mysound.wav }}'
) )
""", """,
'depends': [ 'depends': [

Loading…
Cancel
Save