679ede2c327a98fa113d2367fc3c31a94e368022
Since [1] if the partner related to a visitor belongs to a company that cannot be accessed by the current user, an error is raised when trying to display the list of visitors. This commit makes the name obtained through an additional sudo on the `partner_id` record which might not be accessible to the current user. This is equivalent to using the `name` field of visitor, except that accessing the `partner_id` field will fail if `website.visitor` itself cannot be accessed. Steps to reproduce: - Go to Settings / Companies - Create a second company - Go to Website / Reporting / Visitors - Select "Edwin Hansen" - Navigate to its linked partner in the contact field "Gemini Furniture, Edwin Hansen" - Navigate to its company "Gemini Furniture" - In the "Sales & Purchase" tab, assign the second company as the Company - Save (this creates an error - but it is saved) - Go to Website / Reporting / Visitors => The page was not displayed and an access error message was displayed. [1]: https://github.com/odoo/odoo/commit/d348bed1ad9d3d16b295f013f015706be6c07820 opw-3462104 closes odoo/odoo#134190 X-original-commit: a75673217aef2ffaaa93585526dc1e647a270495 Signed-off-by: Romain Derie (rde) <rde@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%