How to do it...

To get the name of authors from the book recordset, you need to perform the following steps:

  1. Define a method called get_author_names():
    @api.model 
    def get_author_names(self, books): 
  1. Call mapped() to get the email addresses of the contacts of the partner:
    return books.mapped('author_ids.name') 
..................Content has been hidden....................

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