[IMP] website_sale_aplicoop: respect allow_out_of_stock_order
Added website_sale_stock dependency and modified _compute_stock_ribbons to respect the allow_out_of_stock_order field: - If allow_out_of_stock_order=True: product can always be added to cart - If allow_out_of_stock_order=False and qty<=0: add-to-cart is blocked The JS logic already checks data-out-of-stock attribute from template, so no frontend changes were needed. Version bump: 18.0.1.7.0 -> 18.0.1.8.0
This commit is contained in:
parent
d3f26120b0
commit
4141fc5ab1
2 changed files with 26 additions and 8 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
{ # noqa: B018
|
||||
"name": "Website Sale - Aplicoop",
|
||||
"version": "18.0.1.7.0",
|
||||
"version": "18.0.1.8.0",
|
||||
"category": "Website/Sale",
|
||||
"summary": "Modern replacement of legacy Aplicoop - Collaborative consumption group orders",
|
||||
"author": "Odoo Community Association (OCA), Criptomart",
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
"license": "AGPL-3",
|
||||
"depends": [
|
||||
"website_sale",
|
||||
"website_sale_stock",
|
||||
"product",
|
||||
"sale",
|
||||
"stock",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue