Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MERGE][ADD-IMP] website_* : apply multiple improvements on visitor #36290

Closed

Commits on Sep 17, 2019

  1. [FIX] im_livechat: show message history

    Revision on odoo@923fb7a
    
    Commit above fixed an issue since v11.0 that display duplicated
    messages on a website livechat window.
    
    Forward-ported broke the livechat in v12.0 due to refactoring of mail
    odoo@cd34f6d
    
    This commit correctly adapts fix for v12.0+.
    
    opw-2070911
    
    closes odoo#36921
    
    Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
    alexkuhn authored and dbeguin committed Sep 17, 2019
    Copy the full SHA
    85b1c85 View commit details
    Browse the repository at this point in the history
  2. [IMP] crm : factorise get_lead_by_confidence_level to prepare next co…

    …mmits
    
    In order to prepare the send mail to visitor that are linked to leads,
    getting lead by confidence level must be factorised to avoid code duplicates.
    
    Task ID: 2056080
    PR odoo#36290
    dbeguin committed Sep 17, 2019
    Copy the full SHA
    7ba39e3 View commit details
    Browse the repository at this point in the history
  3. [IMP] website,livechat : apply various imp and fix on visitor views

    Applies various improvements:
      - Remove welcome message if chat request usecase.
      - If a visitor is online: line is green / if offline: line is red (in the list view)
      - Visitors list view: add first / last connection fields and remove time_since_last_action
      - Avoid useless leave notification if the livechat channel is empty
    
    Fix
      - ACLS on website_visitor_page model (for im_livechat_group_user)
      - ACLS on website_visitor and website_visitor_page model (for sales_team.group_sale_salesman)
      - Update visitor lang if visitor change the website lang.
      - Create visitor twice when translated website (due to rerouting)
      - Avatar for visitor banner in discuss. (image_64 instead of old image_small)
    
    Task ID: 2056080
    PR odoo#36290
    dbeguin committed Sep 17, 2019
    Copy the full SHA
    4ca6c44 View commit details
    Browse the repository at this point in the history
  4. [IMP] website : send mail to visitor linked to res.partner

    This commit allows to send an email to a visitor
    directly from the visitor form view if the visitor is linked a
    res.partner that a valid email address
    
    Task ID: 2056080
    PR odoo#36290
    dbeguin committed Sep 17, 2019
    Copy the full SHA
    597cf49 View commit details
    Browse the repository at this point in the history
  5. [IMP] website_crm : send mail to visitor that have lead

    This commit allows to send an email to a visitor if the visitor
    is linked to at least 1 lead that has a valid email address.
    If multiple leads have valid email address, email field on visitor
    will contain a comma separated list of the leads' valid emai addresses.
    
    Task ID: 2056080
    PR odoo#36290
    dbeguin committed Sep 17, 2019
    Copy the full SHA
    3865a0b View commit details
    Browse the repository at this point in the history
  6. [ADD] website_sms : send sms to visitor if linked to partner

    This commit allows to send a sms to a visitor if the visitor
    is linked to partner that has a mobile number.
    
    Task ID: 2056080
    PR odoo#36290
    dbeguin committed Sep 17, 2019
    Copy the full SHA
    9d92d2f View commit details
    Browse the repository at this point in the history
  7. [ADD] website_crm_sms : send sms to visitor linked to a lead

    This commit allows to send a sms to a visitor if the visitor
    is linked to a least 1 lead that has a mobile number or a phone number.
    As in contact form from website, there is only a phone field and not a mobile one,
    we allow to send sms if the lead phone field is filled.
    This is not very smart though.. But as 95% of the people around the world are
    typing their mobile number into a phone field, this will do the work in a
    statistically significative way.
    
    Task ID: 2056080
    PR odoo#36290
    dbeguin committed Sep 17, 2019
    Copy the full SHA
    52829d1 View commit details
    Browse the repository at this point in the history
  8. [FIX] website,website_livechat : restore chat request feature

    since e33172e,
    a chat request could not be sent to a visitor as the website was not
    set anymore on the visitor and the mail_channel could then not be
    assigned to a livechat_channel (using the website_id).
    
    This commit restore the feature using the new temporary model
    website.visitor.lastconnection.
    
    Task ID: 2056080
    PR odoo#36290
    dbeguin committed Sep 17, 2019
    Copy the full SHA
    a09517c View commit details
    Browse the repository at this point in the history
  9. [FIX] website_crm : fix lead's visitor page views

    since e33172e,
    visitor_page_ids have been renamed into website_track_ids.
    But the renaming of this field has not been applied on all usages.
    
    This commit applies the renaming to usage in website_crm.
    
    Task ID: 2056080
    PR odoo#36290
    dbeguin committed Sep 17, 2019
    Copy the full SHA
    9dc11f3 View commit details
    Browse the repository at this point in the history