summaryrefslogtreecommitdiff
path: root/addons/website/security/website_security.xml
diff options
context:
space:
mode:
authorRavi Gadhia <rga@odoo.com>2016-07-15 10:30:04 +0200
committerJérome Maes <jem@openerp.com>2016-08-04 12:02:14 +0200
commitfd09ddb6f3c40e9ec5854cc58c7eb791d4498dc0 (patch)
tree58e598da9165b3f78a9d35efcc3c9a2167b82a9b /addons/website/security/website_security.xml
parent7c20b4785bef5bf2fd84b429d42a2f3425801410 (diff)
[MIG] website: migration to new api
Migration of website module to new API. The tricky phase is ir_http.py : we need to use `request.env` only when the authenfication phase is done. Normally by calling `super` of `_dispatch` method, but website module required it to be done before. This is important since `env`is a lazy property of `request` object. Some hack were kept since this commit is a migration ('RequestUID' in ir.http, ...) Some docstrings were added.
Diffstat (limited to 'addons/website/security/website_security.xml')
-rw-r--r--addons/website/security/website_security.xml6
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/website/security/website_security.xml b/addons/website/security/website_security.xml
index c7ea907b780..47711f3c712 100644
--- a/addons/website/security/website_security.xml
+++ b/addons/website/security/website_security.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<openerp>
-<data>
+<odoo>
<record id="website_designer_edit_qweb" model="ir.rule">
<field name="name">website_designer: Manage Website and qWeb view</field>
<field name="model_id" ref="base.model_ir_ui_view"/>
@@ -31,5 +30,4 @@
<field name="perm_create" eval="True"/>
<field name="perm_unlink" eval="True"/>
</record>
-</data>
-</openerp> \ No newline at end of file
+</odoo>