3fecf305b7d99329d3393329983ed4058009b2ec
Steps to reproduce: As Admin: 1. Create a Storable product with a Route of Manufacture 2. Create a re-ordering rule for this product. 3. As a user with no MRP access rights, create a sale order with this product and confirm the sale order. This creates a new `mrp.production` record with `sudo()` on line \#85: https://github.com/odoo/odoo/blob/fae59cee91969692c2375b3bd37e914ec0fb606e/addons/mrp/models/stock_rule.py#L85 4. Duplicate sale order and try to confirm again. This produces an access right error because the first loop finds the existing `mrp.production` record and tries to create a `change.production.qty` record. However, the user doesn't have access rights so they get an error. Solution: Add `sudo` to the create call. opw-3508819 closes odoo/odoo#136640 X-original-commit: c5758e122db5396e23a57826a1b12ed7d9765f55 Signed-off-by: Tiffany Chang (tic) <tic@odoo.com> Signed-off-by: Andrew Gavgavian (andg) <andg@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%