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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| group_order.py | ||
| js_translations.py | ||
| product_extension.py | ||
| res_config_settings.py | ||
| res_partner_extension.py | ||
| sale_order_extension.py | ||
| stock_picking_extension.py | ||