odoo/tutorials#1306

Created by Vishvassinh Kamleshsinh Vihol (vikvi)

Blocked

label
odoo-dev:19.0-dev-zero-stock-blockage-vikvi
head
8b0b8590a41e8c5740293828ba63f1069ba6fa0a
odoo/tutorials
19.0 #1306 missing r+
master

[IMP] sale_zero_stock_blockage: add zero stock approval restriction o…

This PR introduces a new Zero Stock Approval workflow to prevent out-of-stock items from being processed without managerial consent.

Changes Introduced:

Field Addition: Added a boolean field zero_stock_approval to the sale.order model.

UI Access Control: Configured the view layout to make the field readonly for regular users and editable only for sales managers.

Workflow Validation: Overrode action_confirm to validate stock availability before allowing order confirmation.