refactor: remove legacy website snippet configurations and clean up theme structure

This commit is contained in:
hoangvv
2026-08-13 16:15:21 +07:00
parent 860cf9cb0f
commit 4d9da4d492
16 changed files with 399 additions and 451 deletions
@@ -0,0 +1,20 @@
def migrate(cr, version):
"""Best-effort Odoo 17 -> 18 port marker. No destructive schema changes."""
if version is None:
return
# Drop obsolete view xmlids that inherited removed website_sale_product_configurator templates.
cr.execute("""
DELETE FROM ir_ui_view
WHERE id IN (
SELECT res_id FROM ir_model_data
WHERE module = 'theme_prime'
AND name IN ('configure_optional_products', 'optional_product_items')
AND model = 'ir.ui.view'
)
""")
cr.execute("""
DELETE FROM ir_model_data
WHERE module = 'theme_prime'
AND name IN ('configure_optional_products', 'optional_product_items')
AND model = 'ir.ui.view'
""")