Tuesday, October 11, 2016
4 changes · master
Enhancements to existing features
Addresses can now require a state where appropriate, supported by a larger built-in list of states. Duplicate state records are merged more safely and future duplicates are prevented, improving address data quality.
This update fixes incorrect default pricelist settings and improves how pricelists are selected and displayed across sales, products, point of sale, and the website shop. Businesses gain more reliable pricing, better multi-currency behavior, and clearer discount presentation for customers.
Original PR description
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
Odoo now more reliably detects when regular business data models are missing explicit access rules, even when they are built from abstract model templates. This helps administrators and developers catch permission configuration gaps earlier, reducing the risk of overlooked access setup.
Original PR description
Description of the issue/feature this PR addresses: Odoo implements a check that a regular (non-abstract, non-transient) model has at least one explicit access rule. This feature does not work under all circumstances. Current behavior before PR: Consider the following case: ``` python class A(models.AbstractModel): _name = 'A' class B(models.Model): _name = 'B' _inherit = 'A' ``` If rights are missing for `B`, then Odoo will not print a warning because at runtime `B` derives from `AbstractModel`. Desired behavior after PR is merged: If no rights are defined for `B` explicitly, a warning should be issued that access rules are missing. ## I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
Sales and purchase orders now calculate taxes consistently with the invoices created from them when global rounding is used. This prevents small tax total differences, helping keep order and invoice amounts aligned for customers and vendors.
Original PR description
Set the company rounding policy to "Round Globally". Create the following SO (or PO), with a 7 % excluded tax: - Qty Price - 880.000 5.79 - 120.000 4.36 - 28.000 2.88 - 68.000 11.09 - 35.000 5.20 - 35.000 5.32 The total tax on the SO is 477.48, while it is 477.50 on the invoice generated from the SO. Fixes #13687 opw-690090