Monday, August 5, 2024
1 change · saas-17.1
Resolved issues and error corrections
This update fixes problems when viewing a task's history after creating or editing it, and when switching between tasks. Users should now see the correct history without errors, improving reliability when reviewing task changes.
Original PR description
This solve 2 problems: -------------------- * Singleton Error: - STEP TO REPRODUCE: Go to tree view mode of task, press New to create a new Task, input 'description' -> Save -> Then edit its description again -> Save -> View history revision -> Error - Solution is to ensure 'recordId' has value when opening History Dialog * Wrong resId when switching task: - when you have 2 tasks, and you navigate between them, this.props.resId will usually be the one for the first task, so the history is wrong when we navigate between tasks, Instead we use this.model.root.resId Video to reproduce on runbot saas-17.1 https://github.com/odoo/odoo/assets/56789189/1cfd2dd8-a80e-4bdd-aac4-82856eadc8de --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr