-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Closed
Description
In the documentation of the odoo ORM API:
https://www.odoo.com/documentation/18.0/developer/reference/backend/orm.html
In the examples for group_expand
field attribute the functions are accepting an order
keyword parameter:
@api.model
def _read_group_selection_field(self, values, domain, order):
return ['choice1', 'choice2', ...] # available selection choices.
@api.model
def _read_group_many2one_field(self, records, domain, order):
return records + self.search([custom_domain])
But this keyword parameter order
is not used anymore internally. I was checking this file inside thr source code:
odoo/models.py
And this function there:
_read_group_fill_results
In that function, the group_expand
method of the odoo model is never called with the order
parameter.