Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. Smart Space Search v 19.0
  4. Sales Conditions FAQ

Smart Space Search

by AlShayeb Partners https://alshayebco.com
Odoo

$ 8.00

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 70
Technical Name smart_space_search
LicenseLGPL-3
Websitehttps://alshayebco.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 70
Technical Name smart_space_search
LicenseLGPL-3
Websitehttps://alshayebco.com
  • Description
  • Documentation

Smart Space Search

Stop typing % — let spaces do the work

Every space you type in a partner or product search automatically becomes a SQL wildcard. Type john smith and find John A. Smith, John Doe Smith, or any record where both fragments appear — naturally, without typing a single %.

Works on every Many2one and Many2many dropdown pointing to partners or products — in any module, any view, with zero configuration.

Before & After

Without Smart Space Search

Search with no results without the module

Typing "john sm" — Odoo finds nothing

With Smart Space Search

Search returning multiple matches with the module

Same search — multiple matching contacts found instantly

Complete Search Coverage

Every Many2one and Many2many dropdown pointing to partners or products is automatically enhanced — from any module, any view.

Partners & Contacts

Name · Email · Phone · Ref · VAT · Registry

All six fields searched simultaneously in a single OR-domain query. Find any contact from any identifying piece of information.

Products

Name · SKU / Ref · Barcode

Searches product templates and variants. Type a partial barcode or internal reference and it finds the right product instantly.

Zero Configuration

No Settings · No Menus · No Schema

Install and it works immediately, everywhere. No setup screens, no custom fields, no database migrations required.

Search by Any Field

Type a phone number, reference code, email, or VAT number directly in a partner dropdown and find the right contact immediately — no need to open a separate search window.

Partner search by name fragment

Partner search — by name fragment

Partner search by reference or phone number

Partner search — by reference or phone number

Works on Products Too

Product search showing results by SKU and barcode

Search product name, internal reference (SKU), and barcode — all in one query, across both product templates and variants.

Arabic Support Built-In

Arabic language search showing results in Arabic script

Search works identically in Arabic and any Unicode language

  • Full Unicode support — any language works
  • Arabic names match the same way English names do
  • Mixed-language records are searchable in either script
  • RTL display is fully respected by Odoo's interface

Works with All Custom Modules

Smart Space Search overrides name_search() at the model level — not on specific fields or views. This means it works automatically with every Many2one and Many2many dropdown pointing to partners or products, no matter which module created them.

Custom CRM fields, third-party delivery modules, manufacturing add-ons, custom invoicing workflows — if they use a partner or product dropdown, Smart Space Search is already active. No extra configuration, no per-module setup.

Built the Right Way

Designed to be safe, minimal, and fully compatible with the Odoo ecosystem — including multi-company environments and all third-party modules.

  • No custom tables or fields — pure behavioral override at the ORM level
  • ORM-native — fully respects access rights, record rules, and multi-company restrictions
  • Works with all custom modules — any Many2one or Many2many pointing to partners or products
  • OR-domain logic — multiple fields searched simultaneously in one efficient query
  • Language-agnostic — space normalization works with any Unicode script
  • Safe to uninstall — no residual data, no schema changes, no cleanup needed

About AlShayeb Partners

AlShayeb Partners is a professional services firm based in Bethlehem, Palestine, specializing in accounting, auditing, consulting, and Odoo ERP implementation since 1973.

https://alshayebco.com

Smart Space Search

Overview

Smart Space Search overrides name_search() on res.partner, product.product, and product.template to automatically convert spaces into SQL wildcards (%). This enables wildcard sequence matching in relational autocomplete fields (Many2one, Many2many).

When a user types john smith in a customer dropdown, the module searches for john%smith, matching any record where both fragments appear in sequence. The behavior is language-agnostic and works identically for English, Arabic, and any Unicode text.

Architecture

The module uses a helper mixin + explicit model overrides pattern:

smart.space.search.mixin (AbstractModel)

Provides two shared methods:

  • _normalize_search_term(name): collapses multiple spaces, then replaces remaining spaces with %
  • _smart_search_domain(term, operator): builds an OR domain across all fields listed in _smart_search_fields

Each target model inherits the mixin and defines its own name_search() override:

  1. If operator is not ilike/like or name is empty, delegate to super() unchanged
  2. Normalize the search term (space to %)
  3. Build an OR domain across all configured search fields
  4. Combine with the incoming domain (AND)
  5. Call super() with name='' and the combined domain

Search Fields

res.partner:
complete_name, ref, email, phone, vat, company_registry
product.product:
name, default_code, barcode
product.template:
name, default_code, barcode

Performance

The module uses the Odoo 19 Domain class for efficient domain construction. The limit parameter is always preserved, ensuring autocomplete queries remain bounded. For typical SME databases (< 50K partners, < 20K products), there is no perceptible performance impact.

Uninstallation

The module can be safely uninstalled at any time. It creates no custom database tables, no custom fields, and no stored data. Uninstalling immediately restores standard Odoo search behavior with no residual effects.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with