1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/documents/models/res_config_settings.py
2024-12-10 09:04:09 +07:00

16 lines
562 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
deletion_delay = fields.Integer(config_parameter="documents.deletion_delay", default=30,
help='Delay after permanent deletion of the document in the trash (days)')
_sql_constraints = [
('check_deletion_delay', 'CHECK(deletion_delay >= 0)', 'The deletion delay should be positive.'),
]