[ADD] portal: manage api keys in portal
Add the possibility for portal users to manage API keys
in the frontend portal interface.
- Allow for portal users to manage their API keys if the system parameter
`portal.allow_api_keys` is set.
A settting in `res.config.settings` is added in order
to enable or disable the feature (to add/remove the system parameter)
through a compute field,
to avoid adding a new database column in standard
(as this revision targets stable 15.0).
The setting appear only in debug mode.
- Display the API keys in the portal in debug mode only
(as in the back-end for regular users, in their profile)
- The flow in the frontend is a mimic of the flow from the backend,
the wording and the look and feel is from the back-end.
closes odoo/odoo#86915
Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
Showing
- addons/portal/__manifest__.py 1 addition, 0 deletionsaddons/portal/__manifest__.py
- addons/portal/controllers/portal.py 1 addition, 0 deletionsaddons/portal/controllers/portal.py
- addons/portal/models/__init__.py 2 additions, 0 deletionsaddons/portal/models/__init__.py
- addons/portal/models/res_config_settings.py 27 additions, 0 deletionsaddons/portal/models/res_config_settings.py
- addons/portal/models/res_users_apikeys_description.py 20 additions, 0 deletionsaddons/portal/models/res_users_apikeys_description.py
- addons/portal/static/src/js/portal.js 82 additions, 0 deletionsaddons/portal/static/src/js/portal.js
- addons/portal/static/src/xml/portal_security.xml 28 additions, 0 deletionsaddons/portal/static/src/xml/portal_security.xml
- addons/portal/views/portal_templates.xml 35 additions, 0 deletionsaddons/portal/views/portal_templates.xml
- addons/portal/views/res_config_settings_views.xml 28 additions, 0 deletionsaddons/portal/views/res_config_settings_views.xml
- odoo/addons/base/models/res_users.py 5 additions, 2 deletionsodoo/addons/base/models/res_users.py
Loading
Please register or sign in to comment