summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-06-13 16:11:56 +0200
committerXavier Morel <xmo@openerp.com>2014-06-13 16:11:56 +0200
commit1587663fd2f8d70e87f7b34afda4f1b665c1e13b (patch)
tree023fbcddce8ea324e1b1f191dc2ccf123d456a1a /addons/web/static/src/xml/base.xml
parent0f01df42eaf662987abe5f069ca8df2e2caf8e37 (diff)
[FIX] postprocessing of request arguments in website
If website is installed but not used/enabled for the current controller, overridden methods like _get_converters will *still run* for the controller's dispatch. This means a ModelConverter used in a controller with website installed but not enabled will use website.models.ir_http.ModelConverter, not base.ir.ir_http.ModelConverter, and base's args postprocessing will *not* be able to convert the placeholder object to a real UID, only website's postprocessing can do so. And as far as I can see there's no reason to skip the URL building validation either, only the multilang stuff relies on and requires that the controller be website enabled (and in fact that it be multilang enabled), so only *that* should be gated behind a flag. Also always call super(), there's no reason not to and others might add args to postprocess on base rather than website, ending up after website in the MRO.
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions