Browse Source

[FIX] Fixed missing instance variable after cleanup

pull/462/head
Christoph Giesel 8 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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging 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 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() super(QueryGenerationCase, self).setUp()
self.ResPartner = self.env['res.partner'] self.ResPartner = self.env['res.partner']
self.TrgmIndex = self.env['trgm.index'] self.TrgmIndex = self.env['trgm.index']
self.ResPartnerCategory = self.env['res.partner.category']
def test_fuzzy_where_generation(self): def test_fuzzy_where_generation(self):
"""Check the generation of the where clause.""" """Check the generation of the where clause."""

Loading…
Cancel
Save