[FIX] website: multi-solve multi-website's multi-write
The write method did not work properly for views anymore as soon as it was called on a multi-records recordset which contains at least one view which is not website specific. In that case, it used the cow system for that view (and thus created a specific copy)... but forgot to continue the write method for the other views, leading to strange results.
This commit is contained in:
@@ -63,8 +63,12 @@ class View(models.Model):
|
||||
# trigger COW on inheriting views
|
||||
inherit_child.write({'inherit_id': website_specific_view.id})
|
||||
|
||||
return super(View, website_specific_view).write(vals)
|
||||
return super(View, self).write(vals)
|
||||
super(View, website_specific_view).write(vals)
|
||||
continue
|
||||
super(View, view).write(vals)
|
||||
else:
|
||||
super(View, self).write(vals)
|
||||
return True
|
||||
|
||||
@api.multi
|
||||
def unlink(self):
|
||||
|
||||
Reference in New Issue
Block a user