Friday, April 30, 2021
6 changes · master
Code cleanup and technical improvements
This change moves shared image and font files into a cleaner folder structure across several Odoo Enterprise apps. It should not change day-to-day functionality, but it helps keep the codebase easier to maintain and align with the related Community update.
Original PR description
Community: https://github.com/odoo/odoo/pull/69614
Miscellaneous changes
Forward-Port-Of: odoo/enterprise#17876
Original PR description
Forward-Port-Of: odoo/enterprise#17876
The changed test uses the drag&drop helper, and an operation does not work as expected with the given params on chrome 90. The runbot currently uses chrome 80, so it is not an issue, but if your chrome is up-to-date, and you try to run the test suite, this test would fail. Here, we want to drop a text span after another text span, i.e. on its right. Before this commit, it was dropped on its exact center, which appearently was considered as 'after' before chrome 90, but 'before' as of c
Original PR description
The changed test uses the drag&drop helper, and an operation does not work as expected with the given params on chrome 90. The runbot currently uses chrome 80, so it is not an issue, but if your chrome is up-to-date, and you try to run the test suite, this test would fail. Here, we want to drop a text span after another text span, i.e. on its right. Before this commit, it was dropped on its exact center, which appearently was considered as 'after' before chrome 90, but 'before' as of chrome 90. Specifying explicitely that we want to drop it after is harmless and makes the test more robust. Forward-Port-Of: odoo/enterprise#18033
PURPOSE Currently the "Pivot properties" menu item only appears if the formula starts with =PIVOT(... With this fix formulas like =-PIVOT(...), =3*PIVOT(...)+2 also allow to display the pivot properties of the cell. task-id: 2294260 Forward-Port-Of: odoo/enterprise#17945 Forward-Port-Of: odoo/enterprise#13763
Original PR description
PURPOSE Currently the "Pivot properties" menu item only appears if the formula starts with =PIVOT(... With this fix formulas like =-PIVOT(...), =3*PIVOT(...)+2 also allow to display the pivot properties of the cell. task-id: 2294260 Forward-Port-Of: odoo/enterprise#17945 Forward-Port-Of: odoo/enterprise#13763
Steps: - Install Contacts and Data Cleaning - Go to Contacts - Create two contacts with the same names - Go to Data Cleaning / Configuration / Rules / Deduplication - Create a new rule: - Model: Contact - Duplicate Removal: Archive - Deduplicate - Merge the two same contacts - Go to Contacts Bug: One of the two contacts has been deleted instead of archived. Explanation: Models can implement their own merge method by defining `_merge_method()`. It is the case with Contact a
Original PR description
Steps: - Install Contacts and Data Cleaning - Go to Contacts - Create two contacts with the same names - Go to Data Cleaning / Configuration / Rules / Deduplication - Create a new rule: - Model: Contact - Duplicate Removal: Archive - Deduplicate - Merge the two same contacts - Go to Contacts Bug: One of the two contacts has been deleted instead of archived. Explanation: Models can implement their own merge method by defining `_merge_method()`. It is the case with Contact and its merge method only deletes duplicated contacts. This commit shows the user when the merge method is model specific and doesn't offer them to chose between archiving and deleting anymore if it's the case. opw:2491292 Forward-Port-Of: odoo/enterprise#17719
Forward-Port-Of: odoo/enterprise#18040 Forward-Port-Of: odoo/enterprise#18021
Original PR description
Forward-Port-Of: odoo/enterprise#18040 Forward-Port-Of: odoo/enterprise#18021