addons-cm/website_sale_aplicoop/tests
GitHub Copilot 5a2f5d120f [ADD] website_sale_aplicoop: serve Eskaera per website
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>
2026-08-17 17:31:03 +02:00
..
__init__.py [ADD] website_sale_aplicoop: serve Eskaera per website 2026-08-17 17:31:03 +02:00
COBERTURA_TESTS_ANALISIS.md [FIX] website_sale_aplicoop: Remove redundant string= attributes and fix OCA linting warnings 2026-02-18 17:54:43 +01:00
PHASE3_TEST_SUMMARY.md [DOC] website_sale_aplicoop: Add lazy loading documentation and implement v18.0.1.3.0 feature 2026-02-16 18:39:39 +01:00
test_cron_picking_batch.py [IMP] website_sale_aplicoop: automate non-weekly group order cycles 2026-07-15 16:26:14 +02:00
test_date_calculations.py [FIX] website_sale_aplicoop: harden group order cron 2026-03-31 19:36:20 +02:00
test_date_edge_cases.py [ADD] website_sale_aplicoop: restore the test coverage lost with the dead code 2026-08-17 17:24:31 +02:00
test_eskaera_shop.py [FIX] website_sale_aplicoop: Remove redundant string= attributes and fix OCA linting warnings 2026-02-18 17:54:43 +01:00
test_forecasted_stock.py [IMP] website_sale_aplicoop: filter and cap stock using forecasted net qty 2026-06-12 18:18:40 +02:00
test_group_order.py [REF] Code quality improvements and structure fixes 2026-02-21 13:51:25 +01:00
test_group_order_slug.py [FIX] website_sale_aplicoop: three defects in the group order slug 2026-08-11 22:53:09 +02:00
test_group_order_status_endpoint.py [ADD] website_sale_aplicoop: serve Eskaera per website 2026-08-17 17:31:03 +02:00
test_home_delivery.py [TEST] website_sale_aplicoop: add tests for home_delivery computed field 2026-05-20 17:49:50 +02:00
test_multi_company.py [FIX] website_sale_aplicoop: lint fixes (exception chaining, imports, remove unused vars) 2026-05-20 16:05:14 +02:00
test_online_payment.py [ADD] website_sale_aplicoop: online payment per group order 2026-08-16 21:59:35 +02:00
test_phase3_confirm_eskaera.py [ADD] website_sale_aplicoop: serve Eskaera per website 2026-08-17 17:31:03 +02:00
test_portal_routes.py [ADD] website_sale_aplicoop: restore the test coverage lost with the dead code 2026-08-17 17:24:31 +02:00
test_portal_sale_order_creation.py feat(website_sale_aplicoop): ordenar productos por website_sequence y nombre 2026-02-25 19:34:49 +01:00
test_price_with_taxes_included.py [ADD] website_sale_aplicoop: restore the test coverage lost with the dead code 2026-08-17 17:24:31 +02:00
test_pricing_delegation.py [REF] website_sale_aplicoop: price through website_sale instead of privately 2026-08-17 17:28:51 +02:00
test_pricing_with_pricelist.py [REF] website_sale_aplicoop: price through website_sale instead of privately 2026-08-17 17:28:51 +02:00
test_product_discovery.py [ADD] website_sale_aplicoop: restore the test coverage lost with the dead code 2026-08-17 17:24:31 +02:00
test_product_extension.py [FIX] website_sale_aplicoop: Remove redundant string= attributes and fix OCA linting warnings 2026-02-18 17:54:43 +01:00
test_record_rules.py [FIX] website_sale_aplicoop: lint fixes (exception chaining, imports, remove unused vars) 2026-05-20 16:05:14 +02:00
test_res_partner.py [IMP] website_sale_aplicoop: propagate consumer_group_id directly from group_order 2026-03-06 13:49:13 +01:00
test_save_order_endpoints.py [TEST] website_sale_aplicoop: add tests for home_delivery computed field 2026-05-20 17:49:50 +02:00
test_templates_rendering.py [FIX] Resolver 3 fallos de tests en website_sale_aplicoop 2026-03-30 16:21:57 +02:00
test_website_enabled.py [ADD] website_sale_aplicoop: serve Eskaera per website 2026-08-17 17:31:03 +02:00