To get the name of authors from the book recordset, you need to perform the following steps:
- Define a method called get_author_names():
@api.model
def get_author_names(self, books):
- Call mapped() to get the email addresses of the contacts of the partner:
return books.mapped('author_ids.name')