Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore granularity key in annotated_groupbys #115

Open
wants to merge 1 commit into
base: 15.0
Choose a base branch
from

Conversation

Zodk2
Copy link

@Zodk2 Zodk2 commented Jan 10, 2023

Odoo will raise the following error when we try to show the Sales report:

  File "/home/lubuntu/odoo-15.0/odoo/models.py", line 2144, in _read_group_fill_temporal
    granularity = first_a_gby['granularity']
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/lubuntu/odoo-15.0/odoo/http.py", line 643, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/lubuntu/odoo-15.0/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
KeyError: 'granularity'

Odoo will raise the following error when we try to show the `Sales` report:  

```
  File "/home/lubuntu/odoo-15.0/odoo/models.py", line 2144, in _read_group_fill_temporal
    granularity = first_a_gby['granularity']
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/lubuntu/odoo-15.0/odoo/http.py", line 643, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/lubuntu/odoo-15.0/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
KeyError: 'granularity'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant