20 lines
762 B
Python
20 lines
762 B
Python
# Copyright 2024 Taras Shabaranskyi
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResUsersSettings(models.Model):
|
|
_inherit = "res.users.settings"
|
|
|
|
# Stores the user's preferred ordering of applications on the dashboard.
|
|
# The field name 'homemenu_config' matches the key used by the Odoo JS
|
|
# framework's setUserSettings() API. Both community and enterprise
|
|
# modules need this field to persist drag-and-drop app ordering.
|
|
homemenu_config = fields.Json(
|
|
string="Dashboard App Order",
|
|
readonly=True,
|
|
help="JSON array of menu XML IDs representing the user's preferred "
|
|
"application order on the community app launcher dashboard.",
|
|
)
|