The purpose of this task is to use the notification which we currently have for partner autocomplete and to generalize it to our other IAP services. So in this commit, we improve the iap notification for the below views -> we display a toast in green when the request was successfully completed (and the user has enough credits). - when a letter is sent in batch from the list view - when leads are enriched in batch from the list view -> we display a toast in orange when the user doesn't have enough credits with a corresponding 'buy credits' link to the service. - when a letter is sent in batch from the list view - when leads are enriched in batch from the list view or when clicking on 'enrich' from the form view - when creating a new lead mining request task-2185306 closes odoo/odoo#66977 Related: odoo/enterprise#16736 Signed-off-by: Arnaud Joset <arj@odoo.com> Co-authored-by: Nisha Patel <nit@odoo.com>
19 lines
771 B
XML
19 lines
771 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo><data noupdate="1">
|
|
<!-- VIEWS USED FOR MESSAGING -->
|
|
<template id="mail_message_lead_enrich_notfound">
|
|
<p>Lead Enrichment (based on email address)</p>
|
|
<div style="background-color:#ffffff;padding:15px;">
|
|
<span> No company data found based on the email address or email address is one of an email provider. No credit was consumed. </span>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="mail_message_lead_enrich_no_email">
|
|
<p>Lead Enrichment (based on email address)</p>
|
|
<div style="background-color:#ffffff;padding:15px;">
|
|
<span>Enrichment could not be done because the email address does not look valid.</span>
|
|
</div>
|
|
</template>
|
|
|
|
</data></odoo>
|