Friday, May 5, 2023
4 changes · master
Resolved issues and error corrections
This change improves how Odoo handles property-style fields when records are updated dynamically, preventing incorrect or empty values during onchange flows. It also avoids saving invalid property names in some edge cases, making record creation and updates more dependable for users.
Original PR description
The issue with properties fields is that the value in the record snapshot is not correct. This is caused by `convert_to_record()` combining the values with the definition, and in the case of `onchange()`, the values don't match the definition, which causes the method to return the empty list `[]`. We fix the root cause by changing `convert_to_record()` to return the `dict` itself. The combination of the values with the definition is now only done in `convert_to_read()`. Method `convert_to_onchange()` has only one hack to retrieve the current definition record from the record snapshot, as because of cache invalidation, its value is no longer available.
Marketing campaign tests now apply the same activity filters as live campaigns, so test runs only process records that match the intended rules. This helps teams validate campaigns more accurately before launch and reduces misleading test results.
Original PR description
Before this commit, when launching a test for a marketing campaign, activity domains are ignored - records are processed even if they don't respect the domain. With this commit, tests behave as real campaigns, meaning the domains are taken into account. Task-3138559
Helpdesk ticket messages now appear in the correct chronological order when created from incoming emails or related flows. This makes conversations easier to follow and updates internal checks to match the new tracking message behavior.
Original PR description
Update parts of the code that relied on tracking being handled during the creation process and tracking tests that expected 'notification' message type. Task-2834304
This draft update adjusts visual styling across several Odoo Enterprise screens as part of the Milk design refresh. It fixes an alignment issue with the Spreadsheet button on mobile pivot views and updates colors, buttons, badges, menus, dropdowns, checkboxes, lists, and forms for a more consistent user experience.
Original PR description
This PR fixes : - [aju] https://i.imgur.com/RszBeCF.png mobile > pivot view > the 'spreadsheet' button is not aligned with the other buttons task-2818586 Community branch : https://github.com/odoo-dev/odoo/pull/2490