Browse Source

[FIX] Fixed missing instance variable after cleanup

pull/462/head
Christoph Giesel 9 years ago
parent
commit
2a2c71db48
  1. 2
      base_search_fuzzy/models/trgm_index.py
  2. 1
      base_search_fuzzy/tests/test_query_generation.py

2
base_search_fuzzy/models/trgm_index.py

@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from openerp import _, SUPERUSER_ID, api, exceptions, fields, models
from openerp import SUPERUSER_ID, _, api, exceptions, fields, models
from psycopg2.extensions import AsIs

1
base_search_fuzzy/tests/test_query_generation.py

@ -12,6 +12,7 @@ class QueryGenerationCase(TransactionCase):
super(QueryGenerationCase, self).setUp()
self.ResPartner = self.env['res.partner']
self.TrgmIndex = self.env['trgm.index']
self.ResPartnerCategory = self.env['res.partner.category']
def test_fuzzy_where_generation(self):
"""Check the generation of the where clause."""

Loading…
Cancel
Save