Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Usability
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-11 17:15:18
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, Weblate, OCA-git-bot
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds an optional free-text reason to Odoo's native sales order
cancellation dialog. The reason, user, and date are stored on the cancelled sales order.

Unlike `sale_cancel_reason`, which uses a predefined list of reasons, this
module lets the user enter the reason as free text. Normally only one of these modules is needed.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings form Inherits sale.res_config_settings_view_form
sale_order_cancel_view_form sale.order.cancel.form.cancel.reason sale.order.cancel form Inherits sale.sale_order_cancel_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • sale_cancel_confirm Boolean
    help='Ask for an optional reason when cancelling a sales order.' string='Sale Cancellation Reason'
Public methods (0)

No public methods.

New fields (1)
  • sale_cancel_confirm Boolean
    readonly=False related='company_id.sale_cancel_confirm'
Public methods (0)

No public methods.

New fields (1)
  • cancel_confirm Boolean
    default=False
Public methods (1)
  • action_draft(self)

New fields (2)
  • cancel_reason Text
  • sale_cancel_confirm Boolean
    related='order_id.company_id.sale_cancel_confirm'
Public methods (1)
  • action_cancel(self)

Loading…