Tuesday, November 9, 2021
2 changes · master
Resolved issues and error corrections
This fixes a rounding issue in landed cost calculations by using the company currency's precision instead of a generic decimal precision. Businesses should see more consistent and accurate cost amounts when allocating landed costs.
Original PR description
…landed cost There is a rounding problem because of decimal precision so we are change it to currency precision. opw-2524218 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 change restores previous behavior so modules that only add data can install correctly when other apps are already present. It prevents installation failures caused by models not being prepared at the right time, reducing disruption for customers adding localization or configuration packages.
Original PR description
This reverts commit 9cc4d6956b71291958114196107b1889109e92a1. How to reproduce the issue: - Starts from a database with some modules installed (account). - Install a module with data only (l10n_generic_coa) The models are not setup and the data fails to install. A proper fix would be to mark the registry as dirty when new models are added and only setup models when needed. Since the faulty commit was part of a bunch of optimization and the impact of this particular one is quite small, reverting it is a quick and easy fix waiting for a better one (maybe, one day). 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