Displaying offers when an account lacks credits

If you make an IAP service request after all of the purchased credits are consumed, then the service module will generate an InsufficientCreditError, and the client-side module will handle this error automatically and display a popup. Whenever all of your IAP account credit is consumed, Odoo will display a popup like the following screenshot to purchase more credit:

The default popup is too simple and does not provide enough information. In this recipe, we will look at how you can change the content of this popup with an attractive template.

..................Content has been hidden....................

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