Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

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_plugins:

    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.

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, configs: dict)

Bases: Plugin

See lino.core.plugin.Plugin.