Initial commit: Odoo 18.0-20251222 extra-addons
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled

This commit is contained in:
tocmo0nlord
2026-03-13 20:43:25 +00:00
parent 36e847a7df
commit adbe430761
9472 changed files with 1265727 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
To configure this module, you need to:
1. Go to Settings > Sales > Quotations & Orders > Blocking sales due to lack of stock
2. Fill *Field to compare against the quantity demanded*. Possible values:
- *virtual_available_at_date*: Planned quantity to be in stock on the day of delivery
- *qty_available_today*: Quantity available in stock today
- *free_qty_today*: Quantity available without reserve in stock
3. Fill *Groups allowed to bypass the block*

View File

@@ -0,0 +1,3 @@
This module was developed because sometimes you don't want to allow a sale to be confirmed when there is no enough product to sold.
It will be useful for you if selling more than you have in stock or planned is not a desired behaviour.

View File

@@ -0,0 +1,2 @@
- Eduardo de Miguel ([Moduon](https://www.moduon.team/))
- Rafael Blasco ([Moduon](https://www.moduon.team/))

View File

@@ -0,0 +1,3 @@
The development of this module has been financially supported by:
- Ulzama

View File

@@ -0,0 +1,11 @@
This module extends the functionality of Sales to support blocking sales and to allow you to ensure you are capable to send product you have in stock.
When a Sale Order is going to be confirmed, it will be checked if the quantity demanded exceeds that of the field selected in the configuration, and in this case a wizard will appear to allow you to fix quantities indicating what is the maximum quantity that can be ordered.
Then, you can adjust UoM quantities, Packaging quantities or move remaining unfixed lines to a new order.
If the user who is confirming an order has a group that is allowed, an extra option to confirm the Order with errors will appear on the Wizard.
This module only can block lines with product type 'product' (storable products).
Internal notes will be posted on sales when adjusting quantities or moving to another orders.

View File

@@ -0,0 +1,9 @@
To use this module, you need to:
1. Go to Settings > Sales > Quotations & Orders > Blocking sales due to lack of stock
2. Fill *Field to compare against the quantity demanded*: This field will be used to check if the quantity demanded is less than or equal to the value marked in this field. Set it to *virtual_available_at_date* for this test.
3. Fill *Groups allowed to bypass the block*: These groups will allow the blocking to be bypassed if the quantity demanded exceeds the quantity we want to check. Leave it blank to not allow any group to bypass that restriction.
4. Create a Product and set it to be storable.
5. Create a Purchase Order for the product and confirm it. Set the Picking Schedule Date on 3 days.
6. Create a Sale Order with the product and set the Commitment Date on 2 days. Confirm it and check the wizard.
7. Click on *Ajust UoM Quantity* and see the order has been modified to match forecasted quantity.