A co-op can run the plain shop on one website and the group orders on another, but routes are registered process-wide: every /eskaera page answered on every website of the database, and Odoo had already copied the Eskaera menu to all of them. `website.eskaera_enabled` decides which websites serve it, on by default so installing changes nothing. It reaches the settings screen through `website_id`, so it follows the website selector there. Where it is off the routes raise NotFound and the menu is hidden. The menu is hidden rather than deleted, by extending `_compute_visible`. That keeps the record and any manual rename or reordering, so switching the feature back on restores it as it was. Note that a JSON route reports the 404 inside the JSON-RPC payload and still answers HTTP 200; that is the transport, not a hole in the guard, and a test pins it so the next reader does not take it for one. The three remaining settings (lazy loading, products per page, low stock threshold) are still `config_parameter`, so they stay global to the database. Two websites share their values. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
27 lines
1.3 KiB
Python
27 lines
1.3 KiB
Python
# Copyright 2025 Criptomart
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
|
|
|
from . import test_group_order # noqa: F401
|
|
from . import test_group_order_slug # noqa: F401
|
|
from . import test_res_partner # noqa: F401
|
|
from . import test_product_extension # noqa: F401
|
|
from . import test_eskaera_shop # noqa: F401
|
|
from . import test_templates_rendering # noqa: F401
|
|
from . import test_record_rules # noqa: F401
|
|
from . import test_multi_company # noqa: F401
|
|
from . import test_save_order_endpoints # noqa: F401
|
|
from . import test_date_calculations # noqa: F401
|
|
from . import test_phase3_confirm_eskaera # noqa: F401
|
|
from . import test_pricing_with_pricelist # noqa: F401
|
|
from . import test_portal_sale_order_creation # noqa: F401
|
|
from . import test_cron_picking_batch # noqa: F401
|
|
from . import test_group_order_status_endpoint # noqa: F401
|
|
from . import test_home_delivery # noqa: F401
|
|
from . import test_forecasted_stock # noqa: F401
|
|
from . import test_online_payment # noqa: F401
|
|
from . import test_product_discovery # noqa: F401
|
|
from . import test_date_edge_cases # noqa: F401
|
|
from . import test_portal_routes # noqa: F401
|
|
from . import test_price_with_taxes_included # noqa: F401
|
|
from . import test_pricing_delegation # noqa: F401
|
|
from . import test_website_enabled # noqa: F401
|