You are viewing public content (lessons only). Log in and enroll to take quizzes and track progress.
Extra Content In Odoo
Section 100
30 minutes
How To Res Config Settings In Odoo
In odoo we need to add some parameter in res.config.setting and ten read the parameter to perform the operation for this follow the following steps:
Step 1: Define Te res.config.settings mode
#res.config.settings.py
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
session_auto_close_timeout = fields.Integer(
string="Session Auto-Close Timeout (seconds)",
config_parameter="web_session_auto_close.timeout",
default=600,
)
Note: Define With config_parameter parameter