The res.users model functions a bit uniquely since it should allow a user to modify their own parameters but turns off model edition priviledges by default. See "SELF_WRITEABLE_FIELDS". This implies that ir_ui_view#_postprocess_access_rights method will by default turn off record edition, by automatically adding a 'edit="false"' attribute on the form node when the frontend calls 'get_views'. This will in turn prevent the user from modifying its preferences as it will set the form view in readonly mode. (It was apparently ignored pre-OWL, hence why we only have this issue now). To fix the issue, we force the edition by manually setting 'edit="1"' on our "view_users_form_simple_modif" form. Allowing the end-user to modify their own settings again. A tour was added to ensure this behavior. Note that tour steps need to be adapted in the 'hr' module, as this module changes the flow of modifying user preferences. Task-3067001 closes odoo/odoo#106440 X-original-commit: 490d480458590c205962c3f9b95a63790a59f4d3 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
20 lines
658 B
Python
20 lines
658 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import test_get_model_definitions
|
|
from . import test_link_preview
|
|
from . import test_mail_channel
|
|
from . import test_mail_channel_as_guest
|
|
from . import test_mail_channel_member
|
|
from . import test_mail_composer
|
|
from . import test_mail_full_composer
|
|
from . import test_mail_render
|
|
from . import test_mail_template
|
|
from . import test_mail_tools
|
|
from . import test_res_partner
|
|
from . import test_res_users
|
|
from . import test_res_users_settings
|
|
from . import test_rtc
|
|
from . import test_uninstall
|
|
from . import test_update_notification
|
|
from . import test_user_modify_own_profile
|