Daily updates from Odoo
Tuesday, November 14, 2023
1 change · 17.0
Enhancements to existing features
Knowledge now automatically saves your work when you click away from the document or switch windows. This improvement prevents the frustrating loss of unsaved changes by detecting when you've left the document and saving any modifications you've made.
Original PR description
This commit adds an autosave feature when the window detects a `focusout` event. This enables Knowledge to save more often in order to fix one of its biggest issue: the surprise loss of data. When we detect a `focusout` we call the method isDirty to check if the body has indeed been modified. If that's the case then we launch the save mechanism to commit the changes done to the Database. task-3531468