odoo/tutorials#688
Created by Raghav Agiwal (agir)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 5s)
- ci/tutorial: Status resent by Raghav Agiwal (agir)
- label
- odoo-dev:18.0-practice-task-agir
- head
- c47b921fb289dfee7ed4d0704d1626ff7602ce90
odoo/tutorials | |
---|---|
18.0 | #688 missing statuses missing r+ |
master |
18.0 practice task agir
[ADD] dev_zero_stock_blockage: implemented zero stock approval task
Ensure that Sales Orders cannot be confirmed without Zero Stock Approval,
restricting Sales Users from modifying the field while allowing only
Sales Administrators to approve orders.
--> Inherited Model
- Inherited the main model sale order.
- Added a new boolean field zero stock approval in the sale order model.
- Overridden fields get() to make the field read-only for Sales Users
(sales person)
- Made action confirm() to restrict order confirmation unless
zero stock approval is checked.
- Implemented sale order views xml to display zero stock approval
after payment term id.
Access Rights
- Sales Administrator - Can edit the field.
- Sales User : Read-only access.
Ensures better control over order confirmation based on stock approval.