Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 14 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 10 Odoo series since 9.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.19 MB
Module directory on disk
Code analysis 0 migration notes 3 models 1 view 0 HTTP endpoints

Description

This module allows add a unique constraint to partner ref field.

Dependencies

Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…