b0f233ba86260f8aa7529ff76e656f3a8d7838f2
Purpose Fix bugs in link replacement (html and text version) 1/ The replacement of urls in text (not html) was buggy when * a string includes multiple urls, and * `base_url` is one of them and not the first * Also in SMS marketing when adding the sms `id` When it came to base_url's turn, the replace function for the content would replace the `base_url` part of a previously shortened url instead of the distinct `base_url` link. 2/ Ampersand character A) The ampersand character prevented replacement of an url inside a `Markup`. Previous tests passed as the tracker was created but the url was not replaced. B) The ampersand character was not recognized as part of an url for simple strings. 3/ Replacement of already short links A faulty logic made it possible to replace "/r/" urls when no "blacklist" was passed. Commit * Ensures that only the base_url link would be replaced instead in this case. * Adds support for urls with "&" * Does prevent shortening short urls * Improves link conversion performance (regex + avoid duplication when there are several occurrences of the same url) * Adds multiple unit tests Task-2783844 closes odoo/odoo#91164 X-original-commit: 61026806d831b49a7cf5c44ffef3d762986781ce Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%