Skip to content
Snippets Groups Projects
  1. Apr 23, 2020
  2. Apr 15, 2020
    • Aurélien Warnon's avatar
      [IMP] crm_iap_lead_enrich: ease testing for the enrich service · 342ab378
      Aurélien Warnon authored
      Testing the enrich service was not possible since the endpoint was hardcoded.
      This commit introduces a config parameter that allows overriding it.
      
      Done in preparation of task 2081471.
      
      PR #40349
      Task 2081471
      342ab378
    • Aurélien Warnon's avatar
      [IMP] partner_autocomplete,crm_*: unify displayed "clearbit" information · 96207218
      Aurélien Warnon authored
      PURPOSE
      
      We make multiple calls to the clearbit API and the returned information are
      shown in various different templates, although they contain the same
      information.
      
      The purpose of this commit is to unify the templates into a single one to
      reduce code size and improve coherence.
      
      SPECIFICATIONS
      
      Currently, we have 3 ways of reaching out to the IAP clearbit api:
      - When creating a partner (autocomplete service)
      - When enriching an existing lead based on its email address
      - When generating leads using the "Geneate Leads" button or using the website
        visitors
      
      Every time we use the service, we log a note in the model's chatter containing
      all the information returned by the cleabit service (estimated annual revenue,
      media links, sector, ...).
      
      Though using different endpoints and methods, all the calls essentially return
      the same data, and the templates could be unified for consistency.
      
      This is the goal of this commit.
      
      We merge the 3 separate templates of each modules into a unique template that
      always renders the same information to the end user.
      
      To do that, we had to find a common module to store the template, we chose
      "partner_autocomplete" as it's installed anyway as soon as "crm_iap_lead_*" is
      installed.
      
      LINKS
      
      PR #40349
      Upgrade PR odoo/upgrade#775
      Task 2081471
      96207218
  3. Apr 02, 2020
  4. Feb 13, 2020
  5. Dec 20, 2019
    • Jairo Llopis's avatar
      [FIX] crm: move iap widget where it belongs · 9c25891e
      Jairo Llopis authored
      
      To reproduce the bug:
      
      1. Install `crm`.
      2. Uninstall `iap`.
      3. Go to any `res.config.settings` view.
      
      Odoo will crash because the `iap_buy_more_credits` JS widget doesn't
      exist (defined in iap).
      
      Moving the widget from `crm` to `crm_iap_lead_enrich`. Since
      `crm_iap_lead_enrich` depends on `iap`, this problem will not happen
      anymore.
      
      @Tecnativa TT20916
      
      closes odoo/odoo#42258
      
      X-original-commit: ec1be332
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      9c25891e
  6. Oct 07, 2019
  7. Oct 01, 2019
  8. Sep 29, 2019
  9. Sep 27, 2019
  10. Sep 25, 2019
    • Florent Lejoly's avatar
      [IMP] crm_iap_lead_enrich: improve settings of enrichment · 211dba4a
      Florent Lejoly authored
      
      Before this commit it was not possible to enrich leads manually as
      only a cron enriches leads. It is considered as sub optimal since people
      would like to do it manually on some leads and not activate it only for
      all leads, using a cron.
      
      After this commit an option is added in CRM settings to choose the type of
      enrichment: either manual, either automatic.
      
      In manual mode, a button appears on the lead to enrich if certain conditions
      are met (email_adress present, not already enriched,...). It also deactivates
      the enrich cron.
      
      In automatic mode, the button on lead is not displayed and the cron is
      activated.
      
      A config parameter is defined in CRM as it is requested to be able to configure
      it directly in CRM without having to first install the app then configure
      it. A post install hook to synchronize cron status with config parameter
      is therefore required.
      
      FP/AJU request
      
      Task 2075817
      
      closes odoo/odoo#37367
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      211dba4a
    • David Beguin's avatar
      [FIX] crm_iap_lead_enrich : fix lost semantic in lead iap_enrich process · b8401b09
      David Beguin authored
      Since the default value of probability is not set anymore,
      the probability of a new lead is equivalent to 0.
      In Lead enrichement, we filter out won and lost leads.
      But probability = 0 is not a good ways anymore to filter out lost leads.
      Lost reprensents archived leads.
      
      Task ID: 2044539
      PR #37413
      b8401b09
  11. Sep 11, 2019
  12. Sep 22, 2019
  13. Sep 17, 2019
  14. Sep 15, 2019
  15. Sep 10, 2019
  16. Sep 05, 2019
    • fleodoo's avatar
      [ADD] crm_iap_lead_enrich: enrich leads based on email address · 1a36d98e
      fleodoo authored
      
      PURPOSE
      
      Allow the user to enrich a lead based on the domain of the email address of
      the client.
      
      SPECIFICATIONS
      
      Following fields will be populated if found using clearbit and if they are
      not yet populated :
      
      * description
      * partner_name
      * reveal_id
      * website
      * street, street2, zip, city, country_id, state_id
      * phone (using the first number found in clearbit)
      * mobile (using the second number found in clearbit, else the same as phone)
      
      A message will also be logged in the chatter.
      
      If no data is found using clearbit no credit is used and a message will be
      logged. If the user has no credits he will be redirected to buy credits for
      the service.
      
      It is possible to enrich using the 'enrich' action in listview or with a
      cron that will run every hour on leads not older than 1 hour.
      
      Add a "Lead Enrichment" setting in CRM installing lead enrichment.
      
      LINKS
      
      Task 193185
      
      closes odoo/odoo#36419
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      1a36d98e
Loading