Repository
OCA/partner-contact · module folder · Try on Runboat
Module version
1.0.0
Category
Customer Relationship Management
Folder size
0.19 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/partner-contact
Last tracking update
2026-08-07 09:06:26
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Weblate, OCA-git-bot, oca-ci, cyrilmanuel
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits base.view_company_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…