Skip to content

[BUG] website_sale_product_sort upon install #1146

@rfindling-gpc

Description

@rfindling-gpc

Odoo 18 Enterprise: website_sale_product_sort fails to install due to invalid QWeb and Settings view xpaths

Environment

  • Odoo: 18.0 Enterprise
  • Edition: Enterprise (not Community)
  • Modules: Website, Website Sale (Enterprise)
  • Affected module: website_sale_product_sort (OCA / e-commerce)

Problem Summary

The module fails to install or upgrade on Odoo 18 Enterprise due to invalid inherited views that reference template structures removed or refactored in v18. These invalid xpaths cause hard validation errors during module installation and block further app installs.


Errors Observed

1. QWeb template inheritance error

Validation Error
Element ''
cannot be located in parent view

Root cause:
In Odoo 18 Enterprise, the website_sale templates no longer contain the
products_attributes_filters wrapper. The module still relies on class-based xpath selectors that no longer exist.


2. Settings view inheritance error

Validation Error
Element ''
cannot be located in parent view

Root cause:
res.config.settings was refactored in Odoo 18 Enterprise:

  • Legacy <setting id="..."> anchors were removed or renamed
  • The module still anchors to removed setting IDs instead of stable <app name="website"> nodes

Steps to Reproduce

  1. Install Odoo 18 Enterprise
  2. Install Website and Website Sale
  3. Attempt to install website_sale_product_sort
  4. Module installation fails with view validation errors

Expected Behavior

The module installs cleanly on Odoo 18 Enterprise and:

  • Allows configuration of default product sort criteria in Website → Settings
  • Extends website_sale product sorting without validation errors

Actual Behavior

  • Module installation fails
  • View validation errors block module installation
  • Odoo UI is blocked during app install

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions