Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -3929,8 +3929,20 @@ def cow_templates_replicate_upstream(cr, mark_colname=None):
sql.SQL(
"""
UPDATE ir_ui_view AS specific
SET arch_db = generic.arch_db
SET arch_db = generic.arch_db,
inherit_id = COALESCE(
(
SELECT sp.id FROM ir_ui_view AS sp
WHERE sp.key = generic_parent.key
AND sp.website_id = specific.website_id
AND sp.type = 'qweb'
LIMIT 1
),
generic.inherit_id
)
FROM ir_ui_view AS generic
LEFT JOIN ir_ui_view AS generic_parent
ON generic_parent.id = generic.inherit_id
WHERE
specific.{} IS NOT NULL AND
specific.website_id IS NOT NULL AND
Expand Down
Loading