How to do it...

You need to perform the following steps to get the sorted recordset of books based on release_date:

  1. Define a method called sort_books_by_date():
    @api.model 
    def sort_books_by_date(self, books): 
  1. Call sort() to get the email addresses of the contacts of the partner:
    return books.sorted(key='release_date') 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset