294291511f8829d4bac02075396c286673af34ff
/ when no URL is defined on a tour
Prior to this commit, when a tour uses `getClientActionUrl` or `registerWebsitePreviewTour` (which uses `getClientActionUrl`) but would not define a `path` or a `URL` parameter, the function would add an "undefined" string as the value of the path parameter of the generated URL. It is obviously wrong as this would lead to a `/undefined` page in the iframe which is, in most cases, a 404. There is at least one instance of this causing the tour to go on a 404 page which was introduced by [1], however, fixing the util makes more sense as website preview has a default path. This commit fixes that by checking if a path is defined in the `getClientActionUrl` function. [1]: https://github.com/odoo/odoo/commit/9fd5d25f59578abc9c608578a7d2e2953880b582 closes odoo/odoo#124063 X-original-commit: d69fac674d128f8ef47c096d63db653012f2d1fa Signed-off-by: Romain Derie (rde) <rde@odoo.com> Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.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%