Daily updates from Odoo
Navigate
Branch
Wednesday, November 14, 2018
8 changes
New functionality added to Odoo
Selecting a product on an employee expense can now automatically apply the matching analytic account and tags based on existing default settings. This reduces manual entry, improves consistency in expense reporting, and helps costs be categorized correctly.
Original PR description
When a product is selected for an expense, an analytic account is automatically selected based on the default settings.
Enhancements to existing features
Adds a dedicated accounting setting to enable the Swiss QR code option instead of requiring manual technical configuration. This makes the feature easier and safer for Swiss accounting users to activate when needed.
Original PR description
commit 68dafa0620fb8e36c9a1a58da0668bede2c3699b introduced a solution to hide the Swiss QR code by default, by conditionning its display on the existence of an ir.config.parameter that one could manually add. This commits creates the ir.config.parameter and relates it with a field in the accounting settings for more convenience for when we'd need to enable it
Point of Sale now automatically uses the default barcode rules when no specific setup is chosen. This reduces confusion for businesses that start using barcode scanners without enabling extra settings, while having little to no effect on users who do not scan barcodes.
Original PR description
Remove the barcode_scanner Boolean and always load the default nomenclature if non other is defined in pos.config. Because barcode scanners are seen as keyboard by the computer, they always work in the point of sale. Because of this some clients begin using them without activating the nomenclature in pos.config. Barcodes get only recognized if search-fields are selected this way, resulting in clients complaining about the workflow. Enabling the default Nomenclature by default will have almost no effect on the loading time of the point of sale and has no influence on the work flow if not using a scanner.
Archiving a warehouse now also archives its related stock locations, routes, and rules. This prevents inactive warehouses from leaving active related records behind, reducing operational inconsistencies in inventory management.
Original PR description
[IMP] stock: archive warehouse Archiving a warehouse didn't archive its related locations, routes and rules. So we now archive the related objects and add some constraints to avoid having an inconsistent state in stock with archived warehouse. TASK-ID: 30659
When employees select a product on an expense, the system now automatically applies the relevant default analytic account when one is configured. This reduces manual entry and helps keep expense reporting and cost allocation more consistent.
Original PR description
When a product is selected for an expense, an analytic account is automatically selected based on the default settings. 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
The App Store and Play Store buttons in the settings dashboard have been moved to the last column. This keeps the dashboard organized and frees their previous space for upcoming in-app purchase information.
Original PR description
Move the links to the mobile apps to the last column because their previous position will be used for IAP
Resolved issues and error corrections
This update corrects web module tests that no longer matched recent product behavior, ensuring they continue to check meaningful scenarios. It also removes outdated test setup code that is no longer needed, helping keep future quality checks cleaner and more reliable.
Original PR description
This commit fixes two tests that became meaningless after tweaks in production code: - form_tests: use two char fields, as integer fields can't be unset since rev. c62a4edcb - pivot_tests: the button is disabled since rev. 4f4f111, but simulating a click with jQuery bypasses the disabled attribute This commit also removes unecessary overrides of mockRPC. Those overrides existed because the attachments part of the sidebar used to make a search_read RPC, but this has been removed at rev. 1dbb555. 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
Payroll calculations now support multiple workday or input lines with the same code, such as several holidays of the same type in one payslip period. This prevents payroll from silently counting only one entry and helps businesses produce more accurate payslips when payroll rules are updated accordingly.
Original PR description
Before this commit, inputs (workdays or inputs) could conform two lines having the same code (Example: two holidays of the same type in the payslip period) This commit returns recordsets, where…
Before this commit, inputs (workdays or inputs) could conform two lines having
the same code (Example: two holidays of the same type in the payslip period)
This commit returns recordsets, where previously singletons were returned.
This requires migration of python code hr rules as they need to implement
`mapped` where previously accessing values directly:
Eg.: sum(RecordSet.mapped('amount'))
However, this migration is only necesary for rules that would have required this
fix anyhow.
**Description of the issue/feature this PR addresses:**
- Calculation errors when dealing with multiple inputs sharing the same code
- This case occurs for example: If holidays of same type are taken multiple occasions during the payslip period.
**Current behavior before PR:**
- Only the first such line is taken into account
Desired behavior after PR is merged:
- A python rule, using `mapped` can be construed to fetch the sum of all lines
- This calculation error can be solved thereby.
**Note:** Please do not close, even if not immediately accepted (`wishlist` tag). This PR is meant to be carried along and actively maintained, until this semantic will be completed this way or another.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
@xoe-labs