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
    • Artificial Intelligence
    • 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
    • Affiliate Program
    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. tools
  3. Partner Match v 20.0
  4. Sales Conditions FAQ

Partner Match

by Terrabit https://www.terrabit.ro , Dorin Hongu https://www.terrabit.ro
Odoo
v 20.0 Third Party
Download for v 20.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 19.0 20.0
You bought this module and need support? Click here!
Versions 19.0 20.0
  • Description
  • Manifest
Partner Match

Partner Match

The same partner, recognized the same way

Odoo 20.0 Hidden/Tools Odoo.sh • On-premise LGPL-3
✓ 23 automated tests
89% code coverage
★ Did this module help you? It is free, built and maintained by the Terrabit developers. If it saved you time, a rating on this page is the best way to say thanks — and it helps other Odoo users find it too. Thank you for your support!
★ Leave a rating ↓
  • Overview
  • Usage
Overview

Technical module: one place for the rules that decide whether two partner records are the same, so the modules that look for an existing partner (marketplace import, duplicate finder, trial balance import) recognize the same partner the same way.

It adds no fields, data, menus, scheduled actions or record rules, and changes no behavior by itself: it only provides functions that other modules call.

Normalization (deltatech_partner_match.tools.partner_match, plain Python):

  • Name
    lowercase, without diacritics, punctuation and legal forms (one list for Romania and the EU: SRL, SA, PFA, II, GmbH, Ltd, SARL, KFT...), words sorted. "S.C. Popescu Ion S.R.L." and "ion popescu srl" give the same key.
  • VAT
    alphanumerics only, without the country prefix and the leading zeros ("RO 012.345" = "12345"); the check digit of a Romanian CUI or CNP, or of an EU VAT number, with python-stdnum.
  • Phone
    E.164 (+40722123456) with the same rule Odoo uses for phone_sanitized (a possible and valid number, with phonenumbers); without the library, the Romanian formats and the numbers written with an international prefix. For bulk comparison, the last nine digits.
  • Email
    Odoo's own email_normalize.

Matching:

  • name_similarity (0-1) pairs every word with the closest word of the other name, so a shared surname alone does not make two people alike: use it to decide whether two records are the same partner.
  • token_sort_ratio and similar_pairs (0-100) compare whole names, in bulk; rapidfuzz is used when installed, difflib otherwise, on limited blocks. Use them to propose pairs for review.
  • res.partner._find_similar_partners(values, domain, keys, limit) selects the partners that share the VAT number, the email or the phone of values (never a name alone), and returns them with a score and the keys they share. When both sides are in two counties that both have a locality of that name ("Satu Nou" in Bacău and in Iași), the street and the city do not count. Whether one is reused is decided by the calling module.

phonenumbers, rapidfuzz and unidecode are optional: the results stay the same without them on the exact keys, and slightly coarser on the phones of other countries.

Usage

For developers. Add deltatech_partner_match to depends, then:

from odoo.addons.deltatech_partner_match.tools import partner_match as pm

pm.normalize_name("S.C. Popescu Ion S.R.L.")  # "ion popescu"
pm.normalize_vat("RO 012.345")  # "12345"
pm.check_vat("RO18547290")  # True
pm.normalize_phone("0722 123 456")  # "+40722123456"
pm.phone_key("+40 722 123 456")  # "722123456"
pm.name_similarity("Ana Popescu", "Ion Popescu")  # 0.67

candidates = self.env["res.partner"]._find_similar_partners(
    {"name": "Ion Popescu", "phone": "0722 123 456", "email": "ion@example.com", "city": "Cluj"},
    domain=[("is_company", "=", False)],
)
# [{"partner": res.partner(42,), "score": 0.94, "name_score": 1.0, "reasons": ["phone"]}, ...]
800+
Modules published on Odoo Apps
Odoo
Silver PartnerImplementation & Support

Need help getting started?

Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.

Questions about this module? Write to us — the developers who build it will answer.

Terrabit support →

More apps by Terrabit

Other modules from the same publisher, built to work together. All apps →

IS IAP Services for Odoo Online Hidden/Tools

Use Terrabit services (credits, activation, buy credits) from data-only modules; importable on Odoo Online

KC KPI Cards Hidden/Tools

A reusable band of KPI cards for backend views, each card toggling a search filter

WS Web Scan Base Hidden/Tools

Safe and polite reading of product pages: schema.org data, selectors, checks, history

SP Side Panel Hidden/Tools

A side panel with the details of the selected record, for kanban and list views

DE Deltatech Tools

Shared base for the Deltatech suite: common technical extensions used by all modules

AE Accounting Extensions Accounting & Finance

Extra invoice views, journal options and an Anglo-Saxon cost recognition setting

AA Account Analytic Split Accounting & Finance

Analytic distribution by sales team and percentage split of analytic amounts

UD UBL Despatch Advice Accounting & Finance

Deltatech Account UBL despatch advice

Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 377
Technical Name deltatech_partner_match
LicenseLGPL-3
Websitehttps://www.terrabit.ro

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, please use the developer contact information. They can usually be found in the description.
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