Odoo 12 Development Cookbook - Third Edition
by Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
How it works...
In order to draw credit from the customer's account, we will need a service key generated from the IAP platform. In the Registering an IAP service in Odoo recipe of this chapter, we generated a service key. (It's no problem if you have lost the service key; it can be regenerated from the service page). We have added an isbn_service_key field in the general settings so that we can store a service key in Odoo. You may have noticed that we used the config_parameter attribute in the file definition.
The use of this attribute in the field will store the value in the ir.config_parameter model, also known as the System Parameters. After saving it, you can check its value in the Technical | Parameters | System Parameters menu,
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access