From 47f305cdf073e5b2c4e1cf30ad2e754b4987da2c Mon Sep 17 00:00:00 2001 From: hveficent Date: Tue, 5 Feb 2019 17:43:39 +0100 Subject: [PATCH] [11.0][FIX] base_search_mail_content: Move message content search to last position --- base_search_mail_content/__manifest__.py | 2 +- base_search_mail_content/models/mail_thread.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base_search_mail_content/__manifest__.py b/base_search_mail_content/__manifest__.py index fb2d3522..26831a25 100644 --- a/base_search_mail_content/__manifest__.py +++ b/base_search_mail_content/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Base Search Mail Content", - "version": "11.0.1.0.0", + "version": "11.0.1.0.1", "author": "Eficent," "SerpentCS," "Tecnativa," diff --git a/base_search_mail_content/models/mail_thread.py b/base_search_mail_content/models/mail_thread.py index 17ba7bf1..a58c6fea 100644 --- a/base_search_mail_content/models/mail_thread.py +++ b/base_search_mail_content/models/mail_thread.py @@ -54,7 +54,7 @@ class MailThread(models.AbstractModel): } }) - for node in doc.xpath("//field[1]"): + for node in doc.xpath("//field[last()]"): # Add message_content in search view elem = etree.Element( 'field',