[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:
qsm-odoo
2018-09-13 10:35:42 +02:00
parent c8a37b4678
commit 6113a20fa7
+6 -2
View File
@@ -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):