odoo/tutorials#1292
Created by Mohit Ahir (moahi)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 3s)
- ci/tutorial: (runtime 86s)
- label
- odoo-dev:19.0-zero-stock-approval-moahi
- head
- 53a98610a6be8ae0ec9332035a4ebf7ed4a7c8e5
| odoo/tutorials | |
|---|---|
| 19.0 | #1292 missing r+ |
| master |
[ADD] zero_stock_sale_approval: add zero stock approval field on sale order
Sales users were able to confirm orders even when stock was not available. This could lead to wrong commitments, stock issues, and lack of proper control.
Introduced a zero stock approval mechanism in sale orders. Added a Boolean field zero_stock_approval to control confirmation behavior.
- Created a new module for zero stock approval
- Added zero_stock_approval field in sale.order model
- Restricted field editing to Admin/Sales Manager only
- Updated action_confirm to validate stock before confirming
- Blocked confirmation when stock is insufficient unless approval is enabled
- Extended sale order form view to display the new field