|
| 1 | +.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg |
| 2 | + :target: https://opensource.org/licenses/LGPL-3.0 |
| 3 | + :alt: License: LGPL-3 |
| 4 | + |
| 5 | +======================================================= |
| 6 | +Website Sale Free Qty Virtual Available |
| 7 | +======================================================= |
| 8 | + |
| 9 | +Overview |
| 10 | +======== |
| 11 | + |
| 12 | +The **Website Sale Free Qty Virtual Available** module replaces the usage of `free_qty` with `virtual_available` to determine if stock is available or not in the context of online sales. This adjustment ensures that only the available quantity (considering reserved stock) is used to check stock availability. |
| 13 | + |
| 14 | +Features |
| 15 | +======== |
| 16 | + |
| 17 | +- **Stock Availability Based on Virtual Available**: |
| 18 | + - The module uses the `virtual_available` field instead of `free_qty` to determine if a product is available for sale, ensuring a more accurate representation of stock levels. |
| 19 | + |
| 20 | +- **Customization**: |
| 21 | + - Modifies the product availability template to check stock availability using `virtual_available` when determining if the product is out of stock. |
| 22 | + |
| 23 | +- **Updated Variant Controller**: |
| 24 | + - The module extends the variant controller to include the `virtual_available` value for a product, ensuring accurate stock information is provided when querying product combinations. |
| 25 | + |
| 26 | +Usage |
| 27 | +===== |
| 28 | + |
| 29 | +1. **Install the Module**: |
| 30 | + - Install the **Website Sale Free Qty Virtual Available** module from the Apps menu. |
| 31 | + |
| 32 | +2. **Product Availability Check**: |
| 33 | + - After installation, the stock availability check on the website will be based on the `virtual_available` field, which accounts for both real stock and reserved quantities. |
| 34 | + |
| 35 | +3. **Combination Info**: |
| 36 | + - When querying product combinations, the updated `virtual_available` value will be included in the response, providing accurate stock information for each variant. |
| 37 | + |
| 38 | +Configuration |
| 39 | +============= |
| 40 | + |
| 41 | +No additional configuration is required. The module will automatically replace the use of `free_qty` with `virtual_available` for stock availability checks. |
| 42 | + |
| 43 | +Testing |
| 44 | +======= |
| 45 | + |
| 46 | +1. Test by adding a product to the website and verifying that the stock status is based on `virtual_available`. |
| 47 | +2. Confirm that when querying product combinations, the `virtual_available` field is correctly included in the response. |
| 48 | + |
| 49 | +Bug Tracker |
| 50 | +=========== |
| 51 | + |
| 52 | +If you encounter any issues, please report them on the GitHub repository at `GitHub Issues <https://github.com/avanzosc/odoo-addons/issues>`_. |
| 53 | + |
| 54 | +Credits |
| 55 | +======= |
| 56 | + |
| 57 | +Contributors |
| 58 | +------------ |
| 59 | + |
| 60 | +* Ana Juaristi <anajuaristi@avanzosc.es> |
| 61 | +* Unai Beristain <unaiberistain@avanzosc.es> |
| 62 | + |
| 63 | +For specific questions or support, please contact the contributors. |
| 64 | + |
| 65 | +License |
| 66 | +======= |
| 67 | + |
| 68 | +This project is licensed under the LGPL-3 License. For more details, refer to the LICENSE file or visit <https://opensource.org/licenses/LGPL-3.0>. |
0 commit comments