How to do it...

We will create a new iap_isbn_client module. This module will inherit the my_library module and add a button in the book's form view. Clicking on a button will send a request to our IAP service running on the 8090 port. The IAP service will capture the credit and return the information of the requested book. We will write this information in the book's record. Follow these steps to complete the IAP client module:

  1. Create a new iap_isbn_client module and add
from . import models
  1. Add, with the given content:
{    'name': "Books ISBN",    'summary': "Get Books Data based on ISBN",    'website': "",    'category': 'Uncategorized',    'version': '12.0.1', 'depends': ['iap', 'my_library'], ...

Get Odoo 12 Development Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.