Friday, December 15, 2023
2 changes · master
Resolved issues and error corrections
Pinterest shares now use the image of the product variant selected by the shopper, such as the black desk instead of the default white desk. This makes shared product links more accurate and improves the customer experience when promoting products on social media.
Original PR description
Steps to reproduce the issue fixed by this commit: - Go on /shop - Click on the Customizable Desk product - Click on the Black variant - Share the product on Pinterest => The image shared is the white desk instead of the black one. This commit updates the image shared to the one of the variant. Unfortunatly, for other social networks, we can't use the variant image because they don't take an image/media parameter in their sharer url. They simply crawl the page and take the image in the meta tag and our JS code can't change this meta tag dynamically. The server cannot know which variant is selected because it's in the fragments part of the url. task-3485494
Accounting localization tests were updated to match the corrected way new account codes are generated when accounts are copied. This keeps automated checks reliable across country-specific reports and expense scenarios without changing business workflows.
Original PR description
Since we have fixed the behaviour of _search_new_account_codes, which is now used by account.copy(), we also need to adjust the account codes expected by tests that use account.copy() to generate a new account. Community PR: https://github.com/odoo/odoo/pull/136707 taskid:3521121