Purchase Cancel Reason

purchase_cancel_reason
REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/18.0/purchase_cancel_reason
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, Okia SPRL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, Okia SPRL
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Bhavesh Heliconia
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits purchase.purchase_order_form
purchase_order_kpis_tree purchase.order.list purchase.order xpath Inherits purchase.purchase_order_kpis_tree
purchase_order_view_tree purchase.order.list purchase.order xpath 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
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.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/17.0/purchase_cancel_reason
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, Okia SPRL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, Okia SPRL
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, vesteve
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
When a purchase order is canceled, a reason must be given, it is chosen
from a configured list.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
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 tree New
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 (0)

No public methods.

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.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/16.0/purchase_cancel_reason
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPurchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, Okia SPRL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, Okia SPRL
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Pierre Halleux, Nicolas Delbovier
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
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 tree New
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 (0)

No public methods.

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.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/14.0/purchase_cancel_reason
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPurchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, Okia SPRL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, Okia SPRL
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, newtratip, Alessandro Uffreduzzi, Prapassorn Sornkaew, oca-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
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 tree New
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 (0)

No public methods.

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.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/10.0/purchase_cancel_reason
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, Okia SPRL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, Okia SPRL
COMMITTERS
COMMITTERSYannick Vaucher, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
    - account
    - analytic
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
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 tree New
Models touched (3)

New fields (1)
  • cancel_reason_id Many2one → purchase.order.cancel.reason
    ondelete='restrict' readonly=True string='Reason for cancellation' args: 'purchase.order.cancel.reason'
Public methods (0)

No public methods.

New fields (1)
  • reason_id Many2one → purchase.order.cancel.reason
    required=True string='Reason' args: 'purchase.order.cancel.reason'
Public methods (1)
  • confirm_cancel(self)
    @api.multi

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

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/purchase-workflow
PULL REQUEST
PULL REQUEST[19.0][MIG] purchase_cancel_reason: Migration to 19.0 (#3027)