[ADD] website_sale_aplicoop: Supplier blacklist feature for group orders
- 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
This commit is contained in:
parent
75ebb7b907
commit
d90f2cdc61
7 changed files with 371 additions and 4 deletions
|
|
@ -146772,3 +146772,18 @@ msgstr ""
|
|||
#. model_terms:ir.ui.view,arch_db:website_sale_aplicoop.view_group_order_form
|
||||
msgid "Specific products to include directly"
|
||||
msgstr "Productos específicos a incluir directamente"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#. model_terms:ir.ui.view,arch_db:website_sale_aplicoop.view_group_order_form
|
||||
msgid ""
|
||||
"Suppliers excluded from this order. Products with these suppliers as main "
|
||||
"seller will not be available (blacklist has absolute priority)"
|
||||
msgstr ""
|
||||
"Proveedores excluidos de este pedido. Los productos cuyo proveedor principal"
|
||||
" sea uno de estos no estarán disponibles (la lista negra tiene prioridad "
|
||||
"absoluta)"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#. model:ir.model.fields,field_description:website_sale_aplicoop.field_group_order__excluded_supplier_ids
|
||||
msgid "Proveedores Excluidos"
|
||||
msgstr "Proveedores Excluidos"
|
||||
|
|
|
|||
|
|
@ -146743,3 +146743,18 @@ msgstr ""
|
|||
#. model_terms:ir.ui.view,arch_db:website_sale_aplicoop.view_group_order_form
|
||||
msgid "Specific products to include directly"
|
||||
msgstr "Zuzenean sartzeko produktu zehatzak"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#. model_terms:ir.ui.view,arch_db:website_sale_aplicoop.view_group_order_form
|
||||
msgid ""
|
||||
"Suppliers excluded from this order. Products with these suppliers as main "
|
||||
"seller will not be available (blacklist has absolute priority)"
|
||||
msgstr ""
|
||||
"Eskaera honetatik kanporatutako hornitzaileak. Hornitzaile hauetako bat "
|
||||
"hornitzaile nagusi duten produktuak ez dira eskuragarri egongo (zerrenda "
|
||||
"beltzak lehentasun osoa du)"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#. model:ir.model.fields,field_description:website_sale_aplicoop.field_group_order__excluded_supplier_ids
|
||||
msgid "Proveedores Excluidos"
|
||||
msgstr "Kanporatutako Hornitzaileak"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue