TIP: You can type at any time to perform a new search.
Purchase Cancel Reason
purchase_cancel_reason · OCA/purchase-workflow
- Repository
- OCA/purchase-workflow · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Purchase
- Folder size
- 0.42 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/purchase-workflow
- Last tracking update
- 2026-08-07 08:42:58
- Authors
- Camptocamp, Odoo Community Association (OCA), Okia SPRL
- Maintainers
- Camptocamp, Odoo Community Association (OCA), Okia SPRL
- Committers
- Weblate, OCA-git-bot, oca-ci, Bhavesh Heliconia
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
When a purchase order is canceled, a reason must be given, it is chosen from a configured list.
Code Analysis ⓘ
Views touched (6)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
purchase_order_form |
purchase.order.form | purchase.order | form | Inherits purchase.purchase_order_form |
purchase_order_kpis_tree |
purchase.order.list | purchase.order | list | Inherits purchase.purchase_order_kpis_tree |
purchase_order_view_tree |
purchase.order.list | purchase.order | list | Inherits purchase.purchase_order_view_tree |
view_purchase_order_cancel |
Reason for the cancellation | purchase.order.cancel | form | New |
view_purchase_order_cancel_reason_form |
Purchase Order Cancel Reason | purchase.order.cancel.reason | form | New |
view_purchase_order_cancel_reason_tree |
Purchase Order Cancel Reason | purchase.order.cancel.reason | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (1)
-
cancel_reason_idMany2one → purchase.order.cancel.reasoncomodel_name='purchase.order.cancel.reason'ondelete='restrict'readonly=Truestring='Reason for cancellation'
-
action_open_cancel_wizard(self)Open the cancellation wizard with the selected purchase orders. Raise a warning if all orders are in the 'done' or 'cancel' state. Otherwise, proceed with the wizard for valid orders.
New fields (1)
-
reason_idMany2one → purchase.order.cancel.reasoncomodel_name='purchase.order.cancel.reason'required=Truestring='Reason'
-
confirm_cancel(self)
New fields (1)
-
nameCharrequired=Truestring='Reason'translate=True
No public methods.
Loading…
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 119 days ago
- Last activity
- 65 days ago
- Repository
- OCA/purchase-workflow
- Pull request
- [19.0][MIG] purchase_cancel_reason: Migration to 19.0 (#3027)