projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e98131e
)
[IMP] ir.actions: add Warning in eval context for server actions
author
Olivier Dony
<odo@openerp.com>
Thu, 3 Apr 2014 16:26:50 +0000
(18:26 +0200)
committer
Olivier Dony
<odo@openerp.com>
Thu, 3 Apr 2014 16:26:50 +0000
(18:26 +0200)
This way one can do `raise Warning(Foo)` to abort
a transaction and show a user-friendly warning to
the user.
bzr revid: odo@openerp.com-
20140403162650
-m7zmmr9dba7jnzxp
openerp/addons/base/ir/ir_actions.py
patch
|
blob
|
history
diff --git
a/openerp/addons/base/ir/ir_actions.py
b/openerp/addons/base/ir/ir_actions.py
index
2e95b3e
..
748e209
100644
(file)
--- a/
openerp/addons/base/ir/ir_actions.py
+++ b/
openerp/addons/base/ir/ir_actions.py
@@
-935,6
+935,7
@@
class ir_actions_server(osv.osv):
'uid': uid,
'user': user,
'context': context,
+ 'Warning': openerp.exceptions.Warning,
}
return eval_context