Daily updates from Odoo
Friday, July 27, 2018
1 change · master
Resolved issues and error corrections
Odoo now correctly leaves password fields blank when no password value is set, instead of showing the word “false”. This avoids confusion for users editing records with empty password fields and keeps the form display accurate.
Original PR description
Revision on https://github.com/odoo/odoo/commit/4b3588feb2b7e260bf237b0f3944c90cdc47c3b5 In order to not replace characters with `'*'` in edit mode (because of `input` with type 'password'), the above commit did not format the value at all. The formatter of a char with the option 'isPassword' turns all of its characters into `'*'`. That is not intended for password inputs, because the content is hidden by the browser with the 'password' type. The issue with not using the formatter is that an empty field has the value `false`, so an empty password field produces an non-empty password input with its value to 'false'. This commit fixes the issue by forcing empty string for empty password values.