Friday, April 24, 2020
4 changes · master
Enhancements to existing features
This update corrects wording shown in activities and other areas so invoice-related records are labeled as "Invoice" instead of "Journal Entries." This reduces confusion for users who work with invoices in the accounting module.
Original PR description
Before this commit, It would display `Journal Entries` on Activities and at other places where we are using the model's description while We should use "Invoice" at all places since we are using the same model for both. In this commit, we use the correct model name. 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 improves and consolidates internal test tools for email marketing, SMS mailing, and link tracking. It helps make future maintenance safer and faster without changing day-to-day user functionality.
This update prevents module installs, upgrades, and removals from running inside regular unit tests because those operations can leave the test environment unstable. It introduces a safer standalone testing approach, improving reliability for future development and reducing the risk of test results being affected by earlier failures.
Original PR description
With this commit, module operations such as install, upgrades and uninstalls are henceforth forbidden inside unit tests and instead such tests must be performed with standalone Odoo scripts. This is…
With this commit, module operations such as install, upgrades and uninstalls are henceforth forbidden inside unit tests and instead such tests must be performed with standalone Odoo scripts. This is done because module operations during tests are not transactional, this can leave the registry in an unclean state and further tests may be affected by this, it also creates a new registry which complicates registry cleanup if anything crashes, because the registry to be cleaned up is not the same one that crashed. Instead, what should be done is a script that imports odoo as a library, and loads the database necessary then performs whichever operations necessary. This script should contain a single function with a single parameter (env) and should be decorated with @odoo.tests.common.standalone in order to be executed properly, this decorator accepts any amount of positional parameters as tags that can be specified when calling the script in order to execute only a select subset of scripts. Special tags are: 'all' and <module_name>, these are generated automatically, the first will execute ALL scripts available whereas <module_name> will execute all scripts introduced by said module. When calling the test_module_operations script, only scripts found in *installed* modules will be executed, script discovery is only possible if the code is loaded therefore it is only possible if the module is installed.
Commission entries now include the number of months over which the expense will be deferred. This gives accountants clearer context directly in the description, making review and reconciliation easier.
Original PR description
See: https://i.imgur.com/hLYUYmB.png