Skip to content

Comments

[ADD] zero_stock_approval#1184

Draft
japat-odoo wants to merge 1 commit intoodoo:19.0from
odoo-dev:19.0-zero-stock-blockage-japat
Draft

[ADD] zero_stock_approval#1184
japat-odoo wants to merge 1 commit intoodoo:19.0from
odoo-dev:19.0-zero-stock-blockage-japat

Conversation

@japat-odoo
Copy link

Add a new boolean field zero_stock_approval to sale.order to control whether a sales user is allowed to confirm orders with insufficient available stock.

Sales users (non-managers) cannot confirm a sale order when stock is insufficient unless the approval checkbox is checked. Sales managers can always confirm regardless of the field value.

This enforces business rules for zero stock approvals and keeps the confirmation logic consistent with access rights.

The override of action_confirm checks each order line’s stock availability and prevents confirmation if conditions are not met.

Add a new boolean field `zero_stock_approval` to sale.order to
control whether a sales user is allowed to confirm orders with
insufficient available stock.

Sales users (non-managers) cannot confirm a sale order when
stock is insufficient unless the approval checkbox is checked.
Sales managers can always confirm regardless of the field value.

This enforces business rules for zero stock approvals and keeps
the confirmation logic consistent with access rights.

The override of `action_confirm` checks each order line’s
stock availability and prevents confirmation if conditions
are not met.
@robodoo
Copy link

robodoo commented Feb 19, 2026

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants