Tuesday, July 14, 2020
7 changes · master
Enhancements to existing features
This update improves wording in the Survey app's management screens. The clearer labels should make survey setup and administration easier for users to understand, with no major workflow changes expected.
Original PR description
taskId 2285655 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Countries can now define whether a postal code or state is required when validating an address. This helps ensure contact addresses are complete enough for deliveries or mailings, while still allowing simple contact records without a street address.
Original PR description
After this commit, you can specify on a country, if zip or state is required to validate an address. We only check the constrains if the street if filled. We consider valid to have a res.partner located in a country without state on the record, if street is empty. The idea, is that we only need zip/state to send something to the contact, so a record withtout street == a contact, while a record with a street is an address and need to be 'valid' and have all information required to send a letter or a parcel. task-2172788 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 makes current date and time values more consistently available when evaluating business rules and screen logic. This helps modules such as Manufacturing show time-sensitive visual indicators more accurately, with minimal user disruption.
Original PR description
This PR handles 2 things: 1) the merging of the `py_utils.context()` into the evaluation context returned by `BasicModel._getEvalContext` to access the same time-related keys, 2) the addition of 2 new keys into the `py_utils.context` (thus transmitted to the basic model): `today` (an alias for the already present `current_date`) and `now` which represents the current date and time value. A first use case in the MRP module has also been applied to benefit from the new `now` key. Task 2269697
Odoo now shows the specific reason a translation file could not be loaded, instead of only saying the file could not be read. This helps administrators quickly identify issues such as a syntax error and line number, reducing troubleshooting time.
Original PR description
Before this commit Odoo would say that the translation file could not be loaded but not why. If we use, and include, the IOError the sysadmin can directly identify the issue. Let us take an example msgstr which has an issue: msgid "Website communication history" msgstr "Website communicatiegeschiedenis" 3 As you can see this contains an error because of the "3" here, which was added by accident. Before this commit you would only get "couldn't read translation file %s". After this commit it will pinpoint the issue with the line: odoo.tools.translate: couldn't read translation file [lang: nl][format: po]. Here's what we got back instead: Syntax error in po file (line 662) -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update improves the way Odoo's automated tests simulate dates and times, making test results more consistent and easier to maintain. It mainly affects accounting-related test coverage and supporting project dependencies, with no direct change expected for everyday users.
Original PR description
base, tests: use freezegun lib to mock dates and datetimes
This update improves automated checks for accounting-related features by using a more consistent way to simulate dates and times. It also adds extra coverage for Mexican electronic invoicing edge cases, helping reduce the risk of future regressions without changing day-to-day user workflows.
Original PR description
related to https://github.com/odoo/odoo/pull/54227
Users reviewing appraisal survey statistics can now navigate directly back to the related appraisal. This reduces extra clicks and makes the appraisal review flow smoother for HR teams and managers.
Original PR description
taskId 2285655