Skip to content
Snippets Groups Projects
Commit 411ce6a7 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website: don't force website_id on view in all cases

It make test of studio red, and better to have website broken that studio
parent cb2862ad
Branches
Tags
No related merge requests found
......@@ -30,13 +30,6 @@ class View(models.Model):
for view in self:
view.first_page_id = self.env['website.page'].search([('view_id', '=', view.id)], limit=1)
@api.model
def create(self, vals):
website = self.env['website'].get_current_website(fallback=False)
if website and 'website_id' not in vals and 'not_force_website_id' not in self.env.context:
vals['website_id'] = website.id
return super(View, self).create(vals)
@api.multi
def write(self, vals):
'''COW for ir.ui.view. This way editing websites does not impact other
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment