Tuesday, September 12, 2023
4 changes · master
Enhancements to existing features
Mail-related test coverage now runs in a multi-company setup by default and avoids repeated gateway setup. This improves confidence that future mail alias behavior will work correctly for businesses operating multiple companies.
Original PR description
Purpose of this merge is to further cleanup and prepare tests for multi-company enabled aliases, notably * activate multi-company environment by default in all mail tests; * avoid multiple init of gateway parameters; * fix leftover of bad alias management; Followup of odoo/odoo# 130768 and odoo/enterprise# 45204 Followup of Task-3453577 (TestMail: Update Alias/Gateway tests for MC) Followup of Task-3453343 (Mail: Cleanup Alias Usage) Prepares Task-36879 (Mail: Support MultiCompany Aliases)
This update removes obsolete code and pending cleanup notes that are no longer planned, while moving an employee departure reason into the main HR area for broader reuse. It also simplifies some internal session and work-entry logic, helping keep the system easier to maintain without introducing major user-facing changes.
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
This change prevents the system from repeatedly logging the same warning about long database constraint names when unrelated constraints are added later. It keeps logs cleaner and makes important operational messages easier to spot without changing business workflows.
Original PR description
This way, we avoid spamming the log each time new constraints are added in the constraint's table. **Description of the issue/feature this PR addresses:** - Install/update module A defines a constraint with a long name -> A log is shown. - Install/update module B introduces a different constraint in the same model. -> Same log as before is shown again. This commit avoids that unneeded log repetition. **Current behavior before PR:** When a table contains a hashed "long named constraint", each time a new constraint is added (from some other module), the same log is spammed. **Desired behavior after PR is merged:** We avoid spamming same log each time new other constraints are added. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Mail-related tests now run in a controlled multi-company setup by default, reducing duplicate setup and making future multi-company email alias support more reliable. The update also tightens how aliases are accessed and updated in Studio so existing document-owned aliases are not changed unintentionally.
Original PR description
Purpose of this merge is to further cleanup and prepare tests for multi-company enabled aliases, notably * activate multi-company environment by default in all mail tests; * avoid multiple init of gateway parameters; * fix leftover of bad alias management; Followup of odoo/odoo# 130768 and odoo/enterprise# 45204 Followup of Task-3453577 (TestMail: Update Alias/Gateway tests for MC) Followup of Task-3453343 (Mail: Cleanup Alias Usage) Prepares Task-36879 (Mail: Support MultiCompany Aliases)