Friday, November 17, 2023
5 changes · 17.0
Enhancements to existing features
Spreadsheet pivot and list helpers now reuse formula information that is already available instead of recalculating it. This reduces unnecessary processing and should make spreadsheet interactions a little more efficient without changing user-visible behavior.
Original PR description
The pivot/list helpers were tokenizing the cell's content when trying to find list/pivot formulas. But we can skip the tokenize call as we already have the tokens in the cell's compiledFormula. Task: [3584306](https://www.odoo.com/web#id=3584306&menu_id=4720&cids=1&action=333&active_id=2328&model=project.task&view_type=form) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Expense app now makes common actions clearer and safer by positioning key buttons more conveniently, saving reports automatically when created from an expense, and making receipt attachments easier to preview. Expense report lines are no longer directly editable, reducing accidental changes while still letting users view the related receipt quickly.
Original PR description
This commit contains a few small improvements to Expense app. - Primary button moved to the left. - Reports are auto saved when created from an expense. - "Attach Receipt" button now sets the uploaded attachment as the main attachment. - Expense lines in a report are no longer editable. When a line is clicked, the main attachment for that expense (if any) is shown in the attachment previewer. task-3539382 Enterprise PR: odoo/enterprise/pull/50136
Expense receipt attachments now avoid triggering duplicate digitization requests. This makes attaching receipts smoother and helps prevent unnecessary processing when employees submit expenses.
Original PR description
The method _autosend_for_digitization was called twice when attaching a receipt in an expense. Once due to the widget `attach_document` and another due to an action with the same name. This commit moves the action to the community repo and changes it so it sets the main attachment for the expense instead. task-3539382 Community PR: odoo/odoo/pull/138387
Account reports exported to Excel now display account codes and names in separate columns instead of combined in one column. This makes the exported files easier to work with and organize in spreadsheet applications.
Original PR description
There are a few reports/options that have the account as line name. When it happens, the account display name is shown, which contains both the code and the name. In this change, we aim to improve the xlsx print by dynamically splitting the name in such a case in two columns, easing manipulation of the file after export. Task id # 3525247
This update improves the performance of spreadsheet pivot and list features by removing unnecessary processing steps. The system was redundantly converting cell formulas twice; this change eliminates that duplication, making spreadsheet operations faster and more efficient.
Original PR description
The pivot/list helpers were tokenizing the cell's content when trying to find list/pivot formulas. But we can skip the tokenize call as we already have the tokens in the cell's compiledFormula. Task: [3584306](https://www.odoo.com/web#id=3584306&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)