Skip to content

Commit

Permalink
Update help inheritance, remove views and edit README
Browse files Browse the repository at this point in the history
  • Loading branch information
cubells committed Jun 12, 2018
1 parent 515ceaf commit 8daa918
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 30 deletions.
5 changes: 3 additions & 2 deletions base_search_mail_content/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/social",
"category": "Social",
"data": ["data/trgm_index_data.xml",
"views/trgm_index_view.xml"],
"data": [
"data/trgm_index_data.xml",
],
"depends": ["mail", "base_search_fuzzy"],
"license": "AGPL-3",
'installable': True,
Expand Down
1 change: 1 addition & 0 deletions base_search_mail_content/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import mail_thread
from . import trgm_index
18 changes: 18 additions & 0 deletions base_search_mail_content/models/trgm_index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2016 Eficent Business and IT Consulting Services S.L.
# Copyright 2016 Serpent Consulting Services Pvt. Ltd.
# Copyright 2017 LasLabs Inc.
# Copyright 2018 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging

from odoo import fields, models


class TrgmIndex(models.Model):
_inherit = 'trgm.index'

# We take advantage of field inheritance to redefine help instead of do
# inheritance in views that throws an error
field_id = fields.Many2one(
help="You can either select a field of type 'text', 'char' or 'html'."
)
2 changes: 1 addition & 1 deletion base_search_mail_content/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This module depends on the module 'base_search_fuzzy' to ensure that
searches on emails are based on indexes. Please read carefully the
`install instructions <https://github.com/OCA/server-tools/blob/10.0/base_search_fuzzy/README.rst>`_.
`install instructions <https://github.com/OCA/server-tools/blob/11.0/base_search_fuzzy>`_.

This module installs by default the indexes that are required to
perform the searches on mail messages.
27 changes: 0 additions & 27 deletions base_search_mail_content/views/trgm_index_view.xml

This file was deleted.

0 comments on commit 8daa918

Please sign in to comment.