Skip to content

Restore granularity key in annotated_groupbys - #115

Open
Zodk2 wants to merge 1 commit into
Smile-SA:15.0from
Zodk2:patch-1
Open

Restore granularity key in annotated_groupbys#115
Zodk2 wants to merge 1 commit into
Smile-SA:15.0from
Zodk2:patch-1

Conversation

@Zodk2

@Zodk2 Zodk2 commented Jan 10, 2023

Copy link
Copy Markdown

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