summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2018-08-22 09:51:46 +0200
committerJeremy Kersten <jke@odoo.com>2018-08-22 10:08:30 +0200
commit2431e2a9ea756a79e9145780a0b2cccb9a540db3 (patch)
treef5ecdd3c2fe0469b2315097e084dcf4ee307cebf /addons/web_editor/controllers
parent3ff0948b0a7ce98048ced74fa6509b2720caa05d (diff)
[FIX] web_editor, website: remove useless code / comment
Rebase failed, these lines should be no more there.
Diffstat (limited to 'addons/web_editor/controllers')
-rw-r--r--addons/web_editor/controllers/main.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py
index 9509a541c88..7dbc3415f21 100644
--- a/addons/web_editor/controllers/main.py
+++ b/addons/web_editor/controllers/main.py
@@ -146,9 +146,6 @@ class Web_Editor(http.Controller):
# therefore we have to recover the files from the request object
Attachments = request.env['ir.attachment'] # registry for the attachment table
- website = request.env['website'].get_current_website() # # TO MOVE
-
-
res_model = kwargs.get('res_model', 'ir.ui.view')
if res_model != 'ir.ui.view' and kwargs.get('res_id'):
res_id = int(kwargs['res_id'])
@@ -170,8 +167,6 @@ class Web_Editor(http.Controller):
'public': res_model == 'ir.ui.view',
'res_id': res_id,
'res_model': res_model,
- 'website_id': website.id,
-
})
attachment.generate_access_token()
uploads += attachment.read(['name', 'mimetype', 'checksum', 'url', 'res_id', 'res_model', 'access_token'])
@@ -203,8 +198,6 @@ class Web_Editor(http.Controller):
'public': res_model == 'ir.ui.view',
'res_id': res_id,
'res_model': res_model,
- 'website_id': website.id, # TO MOVE IN WEBSITEID
-
})
attachment.generate_access_token()
attachments += attachment