Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Extra Tools
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
Simone Orsi, Stéphane Bidoul (ACSONE), OCA-git-bot, oca-travis, oca-ci
Odoo dependencies
None
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_cron_view_form ir.cron.form ir.cron form Inherits base.ir_cron_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (1)
  • oneshot Boolean
    default=False help='Enable this to run the cron only once. The cron will be deleted right after execution.' string='Single use'
Public methods (3)
  • create(self, vals)
    @api.model
  • cron_oneshot_cleanup(self)
    @api.model
  • schedule_oneshot(self, model_name, method=None, code=None, delay=('minutes', 10), **kw)
    @api.model
    Create a one shot cron. :param model_name: a string matching an odoo model name :param method: an existing method to call on the model :param code: custom code to run on the model :param delay: timedelta compat values for delay as tuple :param kw: custom values for the cron