Skip to content

[ADD] zero_stock_sale_approval: add zero stock approval field on sale order#1292

Draft
moahi-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-zero-stock-approval-moahi
Draft

[ADD] zero_stock_sale_approval: add zero stock approval field on sale order#1292
moahi-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-zero-stock-approval-moahi

Conversation

@moahi-odoo
Copy link
Copy Markdown

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

@robodoo
Copy link
Copy Markdown

robodoo commented May 25, 2026

Pull request status dashboard

… 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
@moahi-odoo moahi-odoo force-pushed the 19.0-zero-stock-approval-moahi branch from bc4833e to 53a9861 Compare May 25, 2026 12:03
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