[IMP] ir.actions: add Warning in eval context for server actions

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
This commit is contained in:
Olivier Dony 2014-04-03 18:26:50 +02:00
parent e98131e0cd
commit effa87f794
1 changed files with 1 additions and 0 deletions

View File

@ -935,6 +935,7 @@ class ir_actions_server(osv.osv):
'uid': uid,
'user': user,
'context': context,
'Warning': openerp.exceptions.Warning,
}
return eval_context