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 IDNameModelTypeStatus
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_id Many2one → purchase.order.cancel.reason
    comodel_name='purchase.order.cancel.reason' ondelete='restrict' readonly=True string='Reason for cancellation'
Public methods (1)
  • 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_id Many2one → purchase.order.cancel.reason
    comodel_name='purchase.order.cancel.reason' required=True string='Reason'
Public methods (1)
  • confirm_cancel(self)

New fields (1)
  • name Char
    required=True string='Reason' translate=True
Public methods (0)

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
118 days ago
Last activity
64 days ago
Repository
OCA/purchase-workflow
Pull request
[19.0][MIG] purchase_cancel_reason: Migration to 19.0 (#3027)