Partner unique reference

partner_ref_unique
REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/19.0/partner_ref_unique
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, cyrilmanuel
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:47
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows add a unique constraint to partner ref field.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • action_merge(self)
    Inject context for avoiding the duplicate reference constraint that happens when merging one contact with reference in another without reference.

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (1)
  • write(self, vals)
    Launch manually the constraint check in partners as current ORM doesn't trigger the constraint on related fields.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/18.0/partner_ref_unique
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Samir GUESMI
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows add a unique constraint to partner ref field.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • action_merge(self)
    Inject context for avoiding the duplicate reference constraint that happens when merging one contact with reference in another without reference.

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (1)
  • write(self, vals)
    Launch manually the constraint check in partners as current ORM doesn't trigger the constraint on related fields.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/17.0/partner_ref_unique
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSDaniel Reis, Weblate, OCA-git-bot, Cyril VINH-TUNG, oca-ci, Jérémy Didderen
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:04
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows add a unique constraint to partner ref field.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • action_merge(self)
    Inject context for avoiding the duplicate reference constraint that happens when merging one contact with reference in another without reference.

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (1)
  • write(self, vals)
    Launch manually the constraint check in partners as current ORM doesn't trigger the constraint on related fields.

New fields (1)
  • ref Char
    copy=False
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/16.0/partner_ref_unique
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Diogo Cordeiro
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:44
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • action_merge(self)
    Inject context for avoiding the duplicate reference constraint that happens when merging one contact with reference in another without reference.

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (1)
  • write(self, vals)
    Launch manually the constraint check in partners as current ORM doesn't trigger the constraint on related fields.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/15.0/partner_ref_unique
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSFrancesco Apruzzese, OCA Transbot, Weblate, OCA-git-bot, oca-ci, Christihan Laurel [Vauxoo]
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:32
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • action_merge(self)
    Inject context for avoiding the duplicate reference constraint that happens when merging one contact with reference in another without reference.

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (1)
  • write(self, vals)
    Launch manually the constraint check in partners as current ORM doesn't trigger the constraint on related fields.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/14.0/partner_ref_unique
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • action_merge(self)
    Inject context for avoiding the duplicate reference constraint that happens when merging one contact with reference in another without reference.

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (1)
  • write(self, vals)
    Launch manually the constraint check in partners as current ORM doesn't trigger the constraint on related fields.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/13.0/partner_ref_unique
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, Víctor Martínez, João Marques, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • action_merge(self)
    Inject context for avoiding the duplicate reference constraint that happens when merging one contact with reference in another without reference.

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (1)
  • write(self, vals)
    Launch manually the constraint check in partners as current ORM doesn't trigger the constraint on related fields.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/12.0/partner_ref_unique
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSMaxime Chambreuil, Akim Juillerat, sbejaoui, OCA Transbot, oca-travis, OCA-git-bot, Simone Orsi
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (2)

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (0)

No public methods.

New fields (1)
  • partner_ref_unique Selection
    related='company_id.partner_ref_unique' store=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/11.0/partner_ref_unique
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, oca-travis, OCA-git-bot, Cris Martín
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company group Inherits base.view_company_form
Models touched (2)

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/9.0/partner_ref_unique
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Antiun Ingeniería S.L.
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Antiun Ingeniería S.L.
COMMITTERS
COMMITTERScubells, OCA Transbot, oca-travis
WEBSITE
WEBSITEhttp://www.antiun.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_company_form Add partner_ref_unique field res.company page Inherits base.view_company_form
Models touched (2)

New fields (1)
  • partner_ref_unique Selection
    default='none' selection=[('none', 'None'), ('companies', 'Only companies'), ('all', 'All partners')] string='Unique partner reference for'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.