Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-bug-16159-msh into
lp:openobject-client-web/6.0.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-bug-16159-msh/+merge/67813
Hello,
In _action.py there was a problem in raising exception, previously while
raising exception we were passsing str instead we have to raise Base Class
Exception or User defined Exception.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-bug-16159-msh/+merge/67813
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-bug-16159-msh.
=== modified file 'addons/openerp/widgets/form/_action.py'
--- addons/openerp/widgets/form/_action.py 2011-01-17 11:57:11 +0000
+++ addons/openerp/widgets/form/_action.py 2011-07-13 14:24:09 +0000
@@ -20,7 +20,7 @@
###############################################################################
import cherrypy
-from openerp.utils import rpc, expr_eval, TinyDict
+from openerp.utils import rpc, expr_eval, TinyDict, common
from openerp.widgets import screen, TinyInputWidget, register_widget
@@ -43,7 +43,7 @@
proxy = rpc.RPCProxy("ir.actions.actions")
res = proxy.read([self.act_id], ['type'], rpc.session.context)
if not res:
- raise _('Action not found!')
+ raise common.message(_('Action not found'))
_type=res[0]['type']
self.action = rpc.session.execute('object', 'execute', _type, 'read', [self.act_id], False, rpc.session.context)[0]
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp