Monday, September 30, 2024
2 changes · saas-17.2
Resolved issues and error corrections
This fixes an issue in Odoo Studio where buttons hidden under the “More” area in a form could not be clicked. Users can now access those extra actions reliably, improving form customization workflows without changing normal business data behavior.
Original PR description
Steps to reproduce ================== - Go to contacts - Open any record - Open studio - Click on the "More" button at the top right next to other buttons - A dropdown is displayed containing more buttons - Try clicking on one of them => Nothing happens Cause of the issue ================== The dropdown is outside `this.viewRenderer.el`. Clicks on it are ignored. This also causes studio specific styling to not be applied. Solution ======== The ButtonBox component from web displays maximum number of buttons outside the dropdown. Then remaining buttons are displayed inside the dropdown. We can copy this approach, but instead of rendering extra buttons inside the dropdown, we can show them on the following line. opw-4164661
The timesheet timer task list now respects the selected project, so users only see relevant tasks instead of tasks from every project. This prevents accidental time entries on the wrong task and makes timer-based timesheet entry clearer.
Original PR description
Step to Reproduce: - In timesheets start the timer. - Select a project. - Now click on tasks Issue: - All the tasks from all the projects are visible. Reason: - task_id is a field of type "task_with_hours" which is extended from man2yone. - But when we get use "getPropertyFieldInfo" to get properties it only gives out domain for many2one and many2many. - Here the field is either of the two types, Fix: - Copy the field domain into fieldInfo. task-4207429