fa2082de8bfcb4d7486c5b34f7a121fe9f10a38f
To reproduce ============ - on a database where *sale*, *contacts* and *website_sale* are installed - create a user without sales access rights but has the right to create a contact (extra rights/create contact) - connect to this user and try to create a contact An Access Error is raised. Purpose ======= Because the model *website_sale* is installed, the method `_onchange_property_product_pricelist` in `res_partner` is triggred. In this method we run `search` on `sale.order`, but the user doesn't have the right to read `sale.order` so the error is raised. Specification ============= The role of the method `_onchange_property_product_pricelist` is needed when we edit an exisitng contact, but in our case, we are creating a new one. To solve issue, the method `_onchange_property_product_pricelist` has been modified to do nothing in case of new contact. opw-2864945 closes odoo/odoo#93813 X-original-commit: 0c49d86f4fac18d151bbda95cbe29bcb1dc9481d Signed-off-by: William Braeckman (wbr) <wbr@odoo.com> Signed-off-by: abla001 <abla@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%