Thursday, January 4, 2024
13 changes · master
Enhancements to existing features
This change adjusts how Odoo responds when a user tries to load records they may not be allowed to access. Instead of stopping the whole operation with an error, the system can return only the records that were actually readable, reducing disruptions while preserving access checks.
Original PR description
record really read. AccessError are handle by `_fetch_field` now. => Bad idea for X2many accesserror
Notification messages have been redesigned to better match Odoo's newer MILK visual style in both light and dark modes. This improves consistency and makes system messages look more polished across the user interface.
Original PR description
This commit gives a fresh look to notification messages and makes them more consistent with new MILK design task-3469789 enterprise PR (for test adaptation only):…
This commit gives a fresh look to notification messages and makes them more consistent with new MILK design
task-3469789
enterprise PR (for test adaptation only): https://github.com/odoo/enterprise/pull/53590
_To test the notifications, copy paste in console:_
`function test() {console.log('test')};odoo.__WOWL_DEBUG__.root.env.services.notification.add('Hello world', {title:"Notification title", type: "info", buttons: [ {name: "Hey", primary: true, onClick: test}, {name: "Bye bye", primary: false, onClick: test} ] });`
| | Before | After |
|--------|--------|--------|
| Light mode | <img width="325" alt="Screenshot 2023-12-18 at 15 24 35" src="https://github.com/odoo/odoo/assets/110090660/ee644ff7-6ed7-47e3-a3fb-f1c77a47016e"> | <img width="411" alt="Screenshot 2023-12-18 at 15 23 31" src="https://github.com/odoo/odoo/assets/110090660/ac7fbe5d-8b48-4e72-af6b-0d19634e7b38"> |
| Dark mode | <img width="338" alt="Screenshot 2023-12-18 at 15 24 44" src="https://github.com/odoo/odoo/assets/110090660/0c2621a9-fc5b-4150-86ae-feca91fc3685"> | <img width="422" alt="Screenshot 2023-12-18 at 15 23 49" src="https://github.com/odoo/odoo/assets/110090660/b6d02eef-9233-4824-9dc6-6caa901eceb9"> |
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prAdds an internal script that helps teams find unused or potentially problematic CSS in asset bundles. This can support future cleanup work, reduce bundle size, and improve maintainability without directly changing customer-facing behavior.
Original PR description
The goal is to be able to tell the useless / problematic parts in an assets bundle and try to reduce their size with a script that checks all CSS classes that can be produced in our CSS bundles. This is a functioning version, that is able to split the results in 3 categories : - 0 use detected - may be used somewhere - probably used (dynamically) By default it outputs its results in 3 text files. task-3248659 - Step 1
A new debug option helps Odoo teams see which web assets are loaded and identify files that make pages heavier. This supports performance optimization by making it easier to find unnecessary or oversized CSS and JavaScript in asset bundles.
Original PR description
The goal is to be able to tell the useless / problematic parts in an assets bundle and try to reduce their size with a script that checks the size of the CSS/JS produced by each file inside a specific assets bundle. This commit add a new debug button that display every asset loaded. task-3248659 - Step 2
The Indian localization now includes default accounts for deferred accounting in its chart of accounts setup. This helps businesses using the India configuration handle deferred revenue or expense accounting more consistently with less manual setup.
Original PR description
[IMP] l10n_in: added default account for deferred coa task-3418482
Live chat now relies on server-provided conversation information instead of keeping most chat state in browser cookies. This reduces request overhead, improves reliability after page reloads or version changes, and prepares the experience for better synchronization across browser tabs.
Original PR description
*: mail. The live chat embed stores the thread in a cookie and restores it when the page is reloaded. This is really bad: - A lot of data are stored as a cookie and add unnecessary overhead to requests. - Local state is unreliable. - Local state is hard to maintain. - Local state enforces differences between live chat and discuss which leads to highly specific code. - Local state can be outdated when the Odoo version changes. - Cookie size is limited thus cannot hold many data. Now that the live chat uses discuss guest system, we can rely on the result of `init_messaging` to retrieve the channel infos. From now on, only the `id` and the `model` of the live chat thread will be stored. In order to rely as much as possible on the server, some formatters were adapted to provide every required data such as `id/model/fold_state` for temporary threads. This work will allow future improvements such as better cross-tab synchronization (currently perfunctory).
This updates a background library used to position pop-ups, menus, and tooltips in the web interface. It helps keep this component current and may support better reliability, with little expected direct impact for everyday users.
Original PR description
Note: popper js has become floating UI and could require some refactoring to switch to this new version.
Indian localization now supports debit notes for e-Invoicing and E-Way Bill workflows. This helps businesses issue and process debit notes while staying compliant with Indian electronic tax reporting requirements.
Original PR description
Before This PR -------------------- l10n_in* module didn't support debit note for E-Invoicing and E-Way Bill After this PR ----------------- It adds support for debit note for l10n_in* E-Invoicing and E-Way Bill Related PR- https://github.com/odoo/enterprise/pull/53097 task-3262416 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update refreshes Odoo's spreadsheet engine with several improvements that make formulas, autofill, charts, copy-paste, and exports more reliable. Users should see smoother spreadsheet work, better handling of chart data and formatting, and fewer errors in common spreadsheet actions.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/56dbdc91d [REL] 17.1.0-alpha.6 https://github.com/odoo/o-spreadsheet/commit/186f4ad4c [FIX] evaluation:…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/56dbdc91d [REL] 17.1.0-alpha.6 https://github.com/odoo/o-spreadsheet/commit/186f4ad4c [FIX] evaluation: `evaluateFormula` no longer throws Task: 3576149 https://github.com/odoo/o-spreadsheet/commit/9b51ead12 [FIX] evaluation: track dependencies with R-tree Task: 3646902 https://github.com/odoo/o-spreadsheet/commit/6e3de2691 [IMP] format: add plain text format Task: 3609540 https://github.com/odoo/o-spreadsheet/commit/b00f81149 [IMP] tests: use `setStyle` and `setFormat` helpers Task: 3650109 https://github.com/odoo/o-spreadsheet/commit/257c53f0d [FIX] Autofill: Automatic fill based on spreaded formula cells Task: 3626607 https://github.com/odoo/o-spreadsheet/commit/e8732b561 [IMP] autofill: allow automatic autofill of multiple row cells https://github.com/odoo/o-spreadsheet/commit/7305e4d8f [FIX] FindAndReplacePanel: horizontal scrollbar in sidepanel https://github.com/odoo/o-spreadsheet/commit/84b9b0125 [IMP] PieChart: exclude negative values Task: 3510971 https://github.com/odoo/o-spreadsheet/commit/456419c7d [IMP] clipboard: keep number format when pasting only values https://github.com/odoo/o-spreadsheet/commit/81095c410 [IMP] index: export isMatrix https://github.com/odoo/o-spreadsheet/commit/0b69fd7b2 [FIX] chart: time axis broken for days scale Task: 3619195 https://github.com/odoo/o-spreadsheet/commit/76f4975ff [IMP] scorecard: handling CF font style on chart https://github.com/odoo/o-spreadsheet/commit/58c1e4a2a [FIX] Components: rename private method arguments https://github.com/odoo/o-spreadsheet/commit/89774fd46 [FIX] *: Support metaKey modifier in event handlers Task: 3606161 https://github.com/odoo/o-spreadsheet/commit/0cd2b6fb8 [IMP] demo: don't double crash on launch error https://github.com/odoo/o-spreadsheet/commit/265b742c2 [FIX] export: faster border and style export https://github.com/odoo/o-spreadsheet/commit/a6e074c89 [IMP] tests: pre-compile owl templates
Indian GST reporting now includes debit notes in the relevant report calculations and return period handling. This helps businesses produce more complete and accurate statutory tax reports when debit notes are issued.
Original PR description
Before This PR -------------------- l10n_in_reports* module didn't support debit note for l10n_in_reports* After this PR ----------------- It adds support for debit note for l10n_in_reports* Related PR- https://github.com/odoo/odoo/pull/146922 task-3262416 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Automated tests and guided tours were updated to match the redesigned notification appearance. This keeps quality checks reliable after the visual change, helping prevent false test failures without changing business workflows.
Original PR description
With the introduction of the new notification design brought in https://github.com/odoo/odoo/pull/140071 we need to update all the tests and tours accordingly since we dropped the `border-color` on the `o_notification` element and are now using a `bg-[color]` on one of it's child, `o_notification_bar` task-3469789 community PR: https://github.com/odoo/odoo/pull/140071
OCR-based invoice processing can now better match taxes when Indian localization uses grouped taxes. This helps reduce manual corrections and improves accuracy when extracting tax details from supplier invoices.
Original PR description
If the Indian localization is installed, we check if the taxes found in the OCR can be found in the children of group taxes
The India reports module now uses dedicated deferred expense and deferred income accounts as the default settings. This helps businesses classify deferred costs and income more accurately instead of using unrelated suspense or capital accounts.
Original PR description
Before this commit the default Deferred Expense was set to `100202 Bank Suspense ` Account and default Deferred Revenue was set to `111100 Capital Account` After this commit the default Deferred Expense is set to `100840 Deferred Expenses` and the default Deferred Revenue is set to `100850 Deferred Income` Related Community PR- https://github.com/odoo/odoo/pull/131675 task-3418482