- Add excluded_supplier_ids field for supplier exclusion - Filter products by main_seller_id (from product_main_seller addon) - Blacklist has absolute priority over all inclusion sources - Products with blacklisted main supplier never appear in orders - Update _get_products_for_group_order() with supplier blacklist logic - Add excluded_supplier_ids to 'Productos Excluidos' section in form view - Add comprehensive test suite (TestSupplierBlacklist class with 9 tests): * Test exclusion by main_seller_id * Test multiple supplier exclusion * Test products without main seller not affected * Test blacklist with direct product inclusion * Test blacklist priority over supplier inclusion * Test combined product and supplier blacklist * Test available_products_count with supplier blacklist - Add Spanish and Euskera translations - Update available_products_count computation to include excluded_supplier_ids - Version bump to 18.0.1.5.0 Use case: Exclude all products from specific supplier (e.g., temporary unavailability) Example: Category with 100 products, exclude supplier X → all products from X excluded Workflow: Bulk inclusion via categories + supplier-level exclusion + product-level exclusion
73 lines
2.6 KiB
Python
73 lines
2.6 KiB
Python
# Copyright 2025 - Today Criptomart
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
|
|
|
{ # noqa: B018
|
|
"name": "Website Sale - Aplicoop",
|
|
"version": "18.0.1.5.0",
|
|
"category": "Website/Sale",
|
|
"summary": "Modern replacement of legacy Aplicoop - Collaborative consumption group orders",
|
|
"author": "Odoo Community Association (OCA), Criptomart",
|
|
"maintainers": ["Criptomart"],
|
|
"website": "https://git.criptomart.net/criptomart/addons-cm",
|
|
"license": "AGPL-3",
|
|
"depends": [
|
|
"website_sale",
|
|
"product",
|
|
"sale",
|
|
"stock",
|
|
"account",
|
|
"product_get_price_helper",
|
|
"product_origin",
|
|
],
|
|
"data": [
|
|
# Datos: Grupos propios
|
|
"data/groups.xml",
|
|
# Datos: Menús del website
|
|
"data/website_menus.xml",
|
|
# Datos: Cron jobs
|
|
"data/cron.xml",
|
|
# Vistas de seguridad
|
|
"security/ir.model.access.csv",
|
|
"security/record_rules.xml",
|
|
# Vistas
|
|
"views/group_order_views.xml",
|
|
"views/res_partner_views.xml",
|
|
"views/res_config_settings_views.xml",
|
|
"views/website_templates.xml",
|
|
"views/product_template_views.xml",
|
|
"views/sale_order_views.xml",
|
|
"views/stock_picking_views.xml",
|
|
"views/portal_templates.xml",
|
|
"views/load_from_history_templates.xml",
|
|
],
|
|
"i18n": [
|
|
"i18n/es.po",
|
|
"i18n/eu_ES.po",
|
|
],
|
|
"external_dependencies": {
|
|
"python": [],
|
|
},
|
|
"assets": {
|
|
"web.assets_frontend": [
|
|
"website_sale_aplicoop/static/src/css/website_sale.css",
|
|
# i18n and helpers must load first
|
|
"website_sale_aplicoop/static/src/js/i18n_manager.js",
|
|
"website_sale_aplicoop/static/src/js/i18n_helpers.js",
|
|
# Core shop functionality
|
|
"website_sale_aplicoop/static/src/js/website_sale.js",
|
|
"website_sale_aplicoop/static/src/js/checkout_labels.js",
|
|
"website_sale_aplicoop/static/src/js/home_delivery.js",
|
|
"website_sale_aplicoop/static/src/js/checkout_summary.js",
|
|
# Search and pagination
|
|
"website_sale_aplicoop/static/src/js/infinite_scroll.js",
|
|
"website_sale_aplicoop/static/src/js/realtime_search.js",
|
|
],
|
|
"web.assets_tests": [
|
|
"website_sale_aplicoop/static/tests/test_suite.js",
|
|
"website_sale_aplicoop/static/tests/test_cart_functions.js",
|
|
"website_sale_aplicoop/static/tests/test_tooltips_labels.js",
|
|
"website_sale_aplicoop/static/tests/test_realtime_search.js",
|
|
],
|
|
},
|
|
"application": True,
|
|
}
|