diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2020-09-17 08:56:14 +0000 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2020-09-17 08:56:17 +0000 |
| commit | 641ae07dbce1d0515fb0710a3363db47b27548e7 (patch) | |
| tree | fededa59d039d25dbb5bd4272b2eed6445d8c223 | |
| parent | 7c1b6a28c75583e1fc3029716a7eaba39fb595f5 (diff) | |
[FIX] base: fix update password wizard
due to breaking changes in https://github.com/odoo/odoo/pull/55995/commits/bf32b22ce247c19fda94ded74e37f7c6120ce2c4
and especially the part:
"NOTE 1. If the default_get within the onchange returns a value for
a field that is not in the view, we ignore it, and it won't be saved.
Before, that value was kept and sent upon save. This change in behavior
may prove problematic, although the overall risk is small. Decision has
been made to keep heavy comments and code snippets if we were to revert
back somehow to the previous situation."
the wizard to update user password was broken as the field user_id
which is required was not present in the view and was thus ignored by
to web client when calling 'create'.
closes odoo/odoo#57922
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
| -rw-r--r-- | odoo/addons/base/views/res_users_views.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/addons/base/views/res_users_views.xml b/odoo/addons/base/views/res_users_views.xml index 1695b95f177..51866fc0bef 100644 --- a/odoo/addons/base/views/res_users_views.xml +++ b/odoo/addons/base/views/res_users_views.xml @@ -22,6 +22,7 @@ <field name="arch" type="xml"> <!-- the user list is editable, but one cannot add or delete rows --> <tree string="Users" editable="bottom" create="false" delete="false"> + <field name="user_id" invisible="1"/> <field name="user_login"/> <field name="new_passwd" required="True" password="True"/> </tree> |
