odoo/tutorials#936
Created by Sanket Hasmukhbhai Tank (stan)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 30s)
- ci/tutorial: (runtime 114s)
- label
- odoo-dev:18.0-sale-zero-stock-stan
- head
- d4647a34daaafbab0f04159cb9b8a3ee253a2a83
| odoo/tutorials | |
|---|---|
| 18.0 | #936 missing r+ |
| 19.0 | |
| master |
[ADD] zero_stock_approval: add "zero_stock_approval" field in SO
Currently, Sales/Users can confirm quotations without any approval.
This change introduces a new module "zero_stock_approval" which adds:
- A boolean field "zero_stock_approval" on sales orders
- A computed field "is_manager" to identify whether the current user is a Sales/Administrator
Behavior:
- If "zero_stock_approval" is checked, Sales/Users can confirm the quotation
- If unchecked, Sales/Users cannot confirm the quotation
- The "zero_stock_approval" field is read-only for Sales/Users and can only be set by Sales/Administrators
This ensures proper approval control and restricts confirmation rights based on the approval status.