Need some help how to user search_order attribute on Many2One field. Don’t find any example in code.
How to sort on specific field following ascending or descending order ?
I try to define a descending order on number when searching lot_number on move:
class Move(metaclass=PoolMeta): __name__ = 'stock.move' @classmethod def __setup__(cls): super(Move, cls).__setup__() cls.lot.search_order = [(Eval('number'), 'DESC'), ]