odoo_addons icon indicating copy to clipboard operation
odoo_addons copied to clipboard

Restore `granularity` key in `annotated_groupbys`

Open Zodk2 opened this issue 2 years ago • 0 comments

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'

Zodk2 avatar Jan 10 '23 11:01 Zodk2