Tuesday, June 3, 2025
1 change · master
Resolved issues and error corrections
The document unlock confirmation dialog now shows the name of the person who locked the document instead of displaying “undefined.” This makes the prompt clearer for users and helps them make informed decisions when unlocking documents.
Original PR description
Steps to reproduce =================== - Lock a document. - Attempt to unlock the document. - Notice that the name of the user who locked the document is missing in the confirmation dialog; instead, it shows `undefined`. Technical ========== Recently, here: https://github.com/odoo/odoo/pull/205486/commits/70224f3ae75b65516f87aa3a1c6f8c988926760a, We replaced the many2one value from an array to an object, so the properties at indices 0 and 1 are no longer available. This PR adapts the above changes by using the object keys instead of the array's index. Task-4821976