Base Cancel Confirm
base_cancel_confirm · OCA/server-ux
Health
90/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 6 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
2 models
2 views
0 HTTP endpoints
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,
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- account_move_cancel_confirm
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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 (4)
-
cancel_byMany2one → res.userscomodel_name='res.users'copy=False -
cancel_confirmBooleancopy=Falsedefault=<expr>help='A flag signify that this document is confirmed for cancellation'string='Cancel Confirmed' -
cancel_dateDatecopy=False -
cancel_reasonTextcopy=Falsehelp='An optional cancel reason'
-
clear_cancel_confirm_data(self) -
get_view(self, view_id=None, view_type='form', **options) -
open_cancel_confirm_wizard(self)
New fields (2)
-
cancel_reasonText -
has_cancel_reasonSelectiondefault='no'required=Trueselection=[('no', 'None'), ('optional', 'Optional'), ('required', 'Required')]
-
confirm_cancel(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…