d7d1d832d997d26dc811952d641c8e134ebfc059
Issue Description When a user changes the sequence of the lines which have a parent_id field, particularly when it changes the sequence and the parent field of the line is after the line, then it will give an error in the opening of the reports. Steps to Reproduce: [This step is only used for this traceback. But the issue occurs in all the account reports.] 1. Install the account_reports module. 2. Open accounting and go to configuration. 3. Then, click on accounting reports and select the profit and loss report. 4. Change the sequence of the lines. 5. Save the changes. 6. Click on the reporting menu and select the profit and loss report. 7. The traceback will generate. Fix: This commit resolves the above issue by throwing a validation exception when the parent line is set after the line. And also throws a validation exception when the user sets the parent line as itself. Sentry ID: 3944989529 closes odoo/odoo#128209 X-original-commit: a8a147dab40af4732bbe072cfd9cff1d1ba80e36 Signed-off-by: Olivier Colson (oco) <oco@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%