Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 6 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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:
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 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 (4)
  • cancel_by Many2one → res.users
    comodel_name='res.users' copy=False
  • cancel_confirm Boolean
    copy=False default=<expr> help='A flag signify that this document is confirmed for cancellation' string='Cancel Confirmed'
  • cancel_date Date
    copy=False
  • 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…

Loading…