efea7e13c5821d2443d1abf9ac4f31fce760df7a
Issue: ====== When you have duplicate groupbys with `lazy=False` you will get an error. Steps to reproduce the error: ============================= - Install timesheet - Go to timesheet / reporting / By Employee - Add a groupby by month for one employee - I will show an error. Origin of the issue: ==================== The timesheet component will the send a request for read_group having `['date:month', 'date:month']` so we will have duplicated groupby which will be processed later in `_read_group_format_result` which update the value of `row[group]` for each group so the first group will have the original values which is ok but the second one will have the updated values by the first iteration which will result in error. Solution: ========= We need to check that the value is of class BaseModel to update it , it means that's the first time encountered. opw-3497803 closes odoo/odoo#137000 X-original-commit: 91d6dc7ed56f67d41adab90ec0019fbb920d9042 Signed-off-by: Rémy Voet (ryv) <ryv@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%