Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.0
Category
misc
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-tools
Last tracking update
2026-08-07 07:24:58
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
OCA-git-bot, oca-travis, Artem Kostyuk
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_record_lifespan_search record.lifespan.search record.lifespan search New
view_record_lifespan_tree record.lifespan.tree record.lifespan tree New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (1)
  • has_an_active_field Boolean
    compute=_compute_has_an_active_field search=_search_has_an_active_field string='Has an active field'
Public methods (0)

No public methods.

New fields (4)
  • archive_states Char
    help="Comma-separated list of states in which records should be archived. Implicit value is `'done, cancel')`."
  • model_id Many2one → ir.model
    domain=[('has_an_active_field', '=', True)] required=True string='Model' args: 'ir.model'
  • model_name Char
    readonly=True related='model_id.model' string='Model Name'
  • months Integer
    help='Number of month after which the records will be set to inactive based on their write date' required=True
Public methods (1)
  • archive_records(self)
    @api.multi
    Call the archiver for several record lifespans.

Loading…

Loading…