lino_xl.lib.dupable_partners

Adds functionality for avoiding duplicate partner records.

To use it, applications must do two things:

  • add the following line to their get_installed_apps:

    yield 'lino_xl.lib.dupable_partners'
    
  • Override their contacts.Partner model to inherit from lino_xl.lib.dupable_partners.mixins.DupablePartner.

Defines a virtual slave table SimilarPartners, which shows the partners that are "similar" to a given master instance (and therefore are potential duplicates).

See also lino.mixins.dupable.

A usage example is lino.projects.min2. See also lino_welfare.modlib.dupable_clients.

(This module's source code is available here.)

Classes

Plugin(site, app_label, app_name, ...)

See lino.core.plugin.Plugin.

class lino_xl.lib.dupable_partners.Plugin(site, app_label, app_name, app_module, needed_by)

Bases: lino.core.plugin.Plugin

See lino.core.plugin.Plugin.