Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 16.0

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

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.7 MB
Module directory on disk
Code analysis 0 migration notes 2 models 5 views 0 HTTP endpoints

Description

Find old records and archive/delete them

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

XML IDNameModelTypeStatus
notification notification ir.ui.view qweb New
view_data_merge_model_form Field Recyle Model Form data_recycle.model form New
view_data_recycle_model_list Field Recyle Model List data_recycle.model list New
view_data_recycle_record_list Field Recycle Record List data_recycle.record list New
view_data_recycle_record_search Field Recycle Record Search data_recycle.record search New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (17)
  • active Boolean
    default=True
  • domain Char
    compute='_compute_domain' readonly=False store=True string='Filter'
  • include_archived Boolean
  • last_notification Datetime
    readonly=True
  • name Char
    compute='_compute_name' copy=True readonly=False required=True store=True string='Name'
  • notify_frequency Integer
    default=1 string='Notify'
  • notify_frequency_period Selection
    default='weeks' string='Notify Frequency Period' args: [('days', 'Days'), ('weeks', 'Weeks'), ('months', 'Months')]
  • notify_user_ids Many2many → res.users
    default=<expr> domain=<expr> help='List of users to notify when there are new records to recycle' string='Notify Users' args: 'res.users'
  • records_to_recycle_count Integer
    compute='_compute_records_to_recycle_count' args: 'Records To Recycle'
  • recycle_action Selection
    default='unlink' required=True string='Recycle Action' args: [('archive', 'Archive'), ('unlink', 'Delete')]
  • recycle_mode Selection
    default='manual' required=True string='Recycle Mode' args: [('manual', 'Manual'), ('automatic', 'Automatic')]
  • recycle_record_ids One2many → data_recycle.record
    args: 'data_recycle.record', 'recycle_model_id'
  • res_model_id Many2one → ir.model
    ondelete='cascade' required=True string='Model' args: 'ir.model'
  • res_model_name Char
    readonly=True related='res_model_id.model' store=True string='Model Name'
  • time_field_delta Integer
    default=1 string='Delta'
  • time_field_delta_unit Selection
    default='months' string='Delta Unit' args: [('days', 'Days'), ('weeks', 'Weeks'), ('months', 'Months'), ('years', 'Years')]
  • time_field_id Many2one → ir.model.fields
    domain="[('model_id', '=', res_model_id), ('ttype', 'in', ('date', 'datetime')), ('store', '=', True)]" ondelete='cascade' string='Time Field' args: 'ir.model.fields'
Public methods (4)
  • action_recycle_records(self)
  • open_records(self)
  • refresh_recycle_records(self)
    Refresh recycled records and reopen the Data Recycle view. Preserves the selected search panel filter by passing `recycle_model_id` into the action context.
  • write(self, vals)

New fields (7)
  • active Boolean
    default=True args: 'Active'
  • company_id Many2one → res.company
    compute='_compute_company_id' store=True args: 'res.company'
  • name Char
    compute='_compute_name' compute_sudo=True args: 'Record Name'
  • recycle_model_id Many2one → data_recycle.model
    index='btree_not_null' ondelete='cascade' string='Recycle Model' args: 'data_recycle.model'
  • res_id Many2oneReference
    index=True model_field='res_model_name' args: 'Record ID'
  • res_model_id Many2one
    readonly=True related='recycle_model_id.res_model_id' store=True
  • res_model_name Char
    readonly=True related='recycle_model_id.res_model_name' store=True
Public methods (3)
  • action_discard(self)
  • action_undiscard(self)
  • action_validate(self)

Loading…

Loading…

Loading…

Loading…