odoo/tutorials#688
Created by Raghav Agiwal (agir)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 13s)
- ci/tutorial: (runtime 108s)
- label
- odoo-dev:18.0-practice-task-agir
- head
- b103d528476cf5a9659bfce87ebd37235827d31d
odoo/tutorials | |
---|---|
18.0 | #688 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.