Thursday, December 15, 2022
3 changes · master
Enhancements to existing features
This update makes Odoo's JavaScript build process list each file's dependencies directly when defining browser modules. This reduces extra work in the browser and should make the underlying asset system more efficient without changing user-facing workflows.
Original PR description
After this commit, the transpiler will add the dependencies of a file to the second argument of the odoo.define(...).
For example:
odoo.define("@test/test", ['@test/dep1', '@test/dep2'], async function (require)
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prNew users who open My Tasks without assigned work will now see default personal stages instead of an empty page. This makes the project task view easier to understand and helps users get started without demo data or prior task assignments.
Original PR description
Currently, when a db is loaded without demo data, or that a user has no task assigned and no personnal stage, the view 'My tasks' is empty. The purpose of this commit is to assign default personnal stage to a user in these case to ease the understanding of new user of what the view can be used for. This commit : - add default personnal stage to user the first time he clicks on the 'My tasks' menu if the user has no personnal stage and no task are assigned to him. task-3047496 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update tidies and simplifies the stock barcode app code, making it easier to maintain and less prone to future issues. It removes unused pieces, standardizes internal behavior, and improves how barcode screens manage information without introducing major user-facing changes.
Original PR description
To make the `stock_barcode` cleaner and more maintainable. - Better use of the `Component`'s `props` (set props' description and don't add props dynamically) - Rewrite some methods (`barcodeInfo` because it's a mess, `updateLineQty`, `_updateLineQty` and `updateLineQty` because it seems more natural than `updateLineQty` calls `updateLineQty` who calls `_updateLineQty` instead of the opposite) - Remove dead code - Other things (see commits' message) task-3048127