Tuesday, February 14, 2023
4 changes · master
Code cleanup and technical improvements
This change removes outdated internal checks for context values that are no longer used anywhere in the system. It simplifies the base contact/customer code without changing expected business behavior.
Original PR description
Those keys have no match in the codebase. 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 restructures how record display data is prepared for kanban and activity views. It limits access to internal record functionality, reducing maintenance risk while keeping the user-facing behavior the same.
Original PR description
To evaluate the KanbanRecord and the ActivityRecord, a formattedRecord is passed.
What is a formattedRecord:
Before this commit:
The base record + all its fields with the keys value and raw_value. formattedRecord = {
...Record(),
field1: {
value: ...,
raw_value: ...,
}
}
After this commit:
All its fields with the value and raw_value keys.
formattedRecord = {
field1: {
value: ...,
raw_value: ...,
}
}
This modification avoids giving access to the functionality of the Record class directly in the arch. The arch should never have access to the internals of the Record.
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-prThis update simplifies how colored tag information is loaded in Odoo’s web interface, especially for project and email-related tag fields. It removes an unused project setting and makes the underlying behavior easier to maintain without changing day-to-day workflows for users.
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
The update adjusts Enterprise apps to stay compatible with a related platform change in how record fields are loaded. This helps keep Helpdesk and Studio screens working consistently after the underlying system update, with no expected change to day-to-day workflows.
Original PR description
This commit is the counterpart of odoo/odoo#112518