diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-02-06 09:39:23 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-02-06 09:39:23 +0100 |
| commit | fd008435e02a5d672822f02180b047da557b1289 (patch) | |
| tree | cc4df6c6712219f3e4301728966842402a9b27af /addons/website/static/src/xml/website.editor.xml | |
| parent | 509d354f60d6f49d06d913807606dbc00b50fafa (diff) | |
| parent | 8860002d41968723836f6f44b71244186464a5b0 (diff) | |
[MERGE] [ADD] website: added support for calling a server action through a new controller, allowing to build website pages through server action.
website: added website/action/<id_or_xml_id> route, that runs the server action designed by its id or xml_id. Only published code server action are run. If the server action returns a response (for example the result of a template rendering), it is returned as result of the controller. This allows to have server action returning a rendered template, to display custom website pages based on some computation.
website: added an override of ir_actions_server:
- added website_published field: only published server action can be run + view update
- evaluation context gets request for evaluation, to enable request.render(template) or request.params.get(key) in order to retrieve the result of a form
- code server action returns 'response' the same way 'action' can be returned for classic code server action
bzr revid: tde@openerp.com-20140206083923-3ealsxehyicr2la1
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
0 files changed, 0 insertions, 0 deletions
