From 6113a20fa7aac62bbf4e7681538014b0dd4a8703 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 12 Sep 2018 16:39:56 +0200 Subject: [PATCH] [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. --- addons/website/models/ir_ui_view.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/website/models/ir_ui_view.py b/addons/website/models/ir_ui_view.py index c5ebf48caad..3d412566e41 100644 --- a/addons/website/models/ir_ui_view.py +++ b/addons/website/models/ir_ui_view.py @@ -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):