Daily updates from Odoo
Thursday, June 16, 2022
4 changes · master
Enhancements to existing features
This update refreshes Odoo Spreadsheet with several small improvements and fixes. Users benefit from more reliable copy/paste behavior, clearer error reporting, cleaner search and formatting menus, and more accurate chart display.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/e4049c2d [FIX] config: fix pre-commit structure https://github.com/odoo/o-spreadsheet/commit/e6b7fd2e [FIX] clipboard: invalidate clipboard when inserting col/row before cut zone https://github.com/odoo/o-spreadsheet/commit/50c00c0a [IMP] errors_handling: add a log level to display errors https://github.com/odoo/o-spreadsheet/commit/b8de10f0 [IMP] components: remove useless combobox in search and replace pannel https://github.com/odoo/o-spreadsheet/commit/0a3348bf [IMP] topbar_menu_registry: improved formatting for format menu https://github.com/odoo/o-spreadsheet/commit/56a82dfd [FIX] chart: point [0;0] not displayed for linear charts https://github.com/odoo/o-spreadsheet/commit/4681a9cb [FIX] evaluation: remove recursive expression in evaluationError
This update refreshes the spreadsheet component used in Documents with several usability and stability improvements. Users benefit from more reliable copy and paste behavior, clearer error reporting, better chart display, and a simplified search and replace experience.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/e4049c2d [FIX] config: fix pre-commit structure https://github.com/odoo/o-spreadsheet/commit/e6b7fd2e [FIX] clipboard: invalidate clipboard when inserting col/row before cut zone https://github.com/odoo/o-spreadsheet/commit/50c00c0a [IMP] errors_handling: add a log level to display errors https://github.com/odoo/o-spreadsheet/commit/b8de10f0 [IMP] components: remove useless combobox in search and replace pannel https://github.com/odoo/o-spreadsheet/commit/0a3348bf [IMP] topbar_menu_registry: improved formatting for format menu https://github.com/odoo/o-spreadsheet/commit/56a82dfd [FIX] chart: point [0;0] not displayed for linear charts https://github.com/odoo/o-spreadsheet/commit/4681a9cb [FIX] evaluation: remove recursive expression in evaluationError
Resolved issues and error corrections
Timesheet entries now correctly keep or require an employee when users create time from the timesheet grid, even if their employee record was archived or deleted. This avoids incomplete task time records and improves the reliability of timesheet reporting and billing flows.
Original PR description
- Bug 1 Steps : Archive your employee, go to your timesheets and add time on a task T line Go to task T and note that a line have been added without any employe Cause : By default, views do not show archived values. Fix : Show archived employees with context key 'test_active=False'. - Bug 2 : Steps : Delete your employee, go to your timesheets and add time on a task T line Go to task T and note that a line have been added without any employe Cause : If this employee do not exist, the timesheet has no employee, which does not make sense. Fix : At creation of aal, check that timesheets have an employee. opw: 2740228 Related PR: https://github.com/odoo/odoo/pull/83918
Code cleanup and technical improvements
Spreadsheet display assets are being separated from the Documents app so dashboards can show spreadsheets without requiring Documents. Editing tools remain tied to Documents, while read-only dashboard viewing can load only the lighter spreadsheet components when needed.
Original PR description
This task is a first step towards dashboards with spreadsheet. As the dashboards should be accessible without Documents, we have to extract the minimal assets required to display a spreadsheet in dashboard mode. In dashboard mode, the "model" part of the features pivots, lists, link, chart, ... are necessary, but the "ui" part (i.e. the edition of charts, insertion of pivot, lists, link) should be only available with Documents. Thus, a new module is introduced: `spreadsheet`. It contains only static files that will be lazy loaded when the first time a spreadsheet is displayed. Part of task-id 2799682 Co-authored-by: Lucas Lefèvre <lul@odoo.com> Co-authored-by: Pierre Rousseau <pro@odoo.com>