Repository
OCA/server-ux · module folder · Try on Runboat
Module version
1.0.1
Category
Usability
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-ux
Last tracking update
2026-08-07 09:06:24
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
JordiMForgeFlow, OCA-git-bot, oca-ci, JasminSForgeFlow
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
account_move_cancel_confirm
Description
Many document model that already has cancel action may also want a
confirm dialog with option to provide reason.

This module does not provide a functionality by itself but an abstract
model to easily implement a confirm with reason wizard when cancel
button is clicked. If reason is provided, it will be visible in form
view.

**Note:** To be able to use this module in a new model you will need
some development.

You can see implementation example as followings,

- [sale_cancel_confirm](https://github.com/OCA/sale-workflow)
- [purchase_cancel_confirm](https://github.com/OCA/purchase-workflow)
- [purchase_request_cancel_confirm](https://github.com/OCA/purchase-workflow)
- [account_move_cancel_confirm](https://github.com/OCA/account-invoicing)

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
cancel_reason_template cancel_reason_template ir.ui.view qweb New
view_cancel_confirm_wizard Cancel Confirmation cancel.confirm form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (2)
  • cancel_confirm Boolean
    copy=False default=<expr> help='A flag signify that this document is confirmed for cancellation' string='Cancel Confirmed'
  • cancel_reason Text
    copy=False help='An optional cancel reason'
Public methods (3)
  • clear_cancel_confirm_data(self)
  • get_view(self, view_id=None, view_type='form', **options)
  • open_cancel_confirm_wizard(self)

New fields (2)
  • cancel_reason Text
  • has_cancel_reason Selection
    default='no' required=True selection=[('no', 'None'), ('optional', 'Optional'), ('required', 'Required')]
Public methods (1)
  • confirm_cancel(self)

Loading…

Loading…

Loading…

Loading…

Loading…