Skip to Content

PMIS Website Theme OCA Assortment Compatibility

License: AGPL-3 PMISuite/website Version: 18.0

The technical addon name is pmis_website_theme_oca_assortment.

This bridge installs automatically when pmis_website_sale_core and OCA's website_sale_product_assortment are installed. It extends PMISuite's visitor visibility hooks with OCA's existing assortment policy instead of maintaining another assortment implementation.

OCA's no_show policy applies to secondary catalog views, direct product previews, search, product navigation, category counts, product snippets, and saved collections. Exact variant restrictions are retained when a template contains both visible and hidden variants. Multiple applicable display assortments use OCA's inherited union policy.

OCA's no_purchase products remain visible. Direct cart requests also enforce OCA's purchase restriction information as the actual visitor, including when the cart order is elevated. Removing a cart line remains possible after restrictions change. PMIS private-price eligibility and the inherited cart update remain in the extension chain.

The bridge does not grant access to unpublished products, products assigned to another website or company, or another customer's collections. Stored collection lines remain intact when a product becomes hidden; rendering filters them for the current visitor.

Existing carts are rechecked through the inherited checkout-readiness hook. Changing an assortment after adding a product therefore prevents checkout until the restriction is resolved. Native removal requests remain supported, including requests that omit an add quantity.

The native catalog domain and product sitemaps use the same OCA assortment selection. Shared sitemaps always use the public visitor, so a signed-in customer cannot populate the shared cache with a private assortment. The bridge depends on OCA's website_exclude_sitemap and preserves its configured exclusions. Assortment creation, policy changes and deletion invalidate affected sitemap caches through OCA's helper. Upgrading clears pre-existing sitemap caches while retaining business attachments. Editor link lookup retains its inherited scope.

Configuration and usage

Configure assortments in the inherited OCA interface, then browse as the intended customer. A no_show restriction removes products from catalog surfaces; no_purchase leaves information visible but blocks buying. If rules change after a cart was created, remove restricted lines before checkout. This bridge also requires website_exclude_sitemap and adds no separate assortment editor or policy switch.

Bug Tracker

Bugs are tracked on PMISuite Repository Issues.

Credits

Authors

  • PMISuite

Contributors

  • Matjaž Mozetič

Maintainers

LUXIM MATMOZ

Current maintainer:

sysadminmatmoz

Luxim is an independent R&D and deployment company focused on solving complex problems in the Odoo ecosystem.

Odoo Community Association

Luxim is an active member of OCA (Odoo Community Association).