Skip to content

[17.0] partner_contact_address_default: stale default address cache after archiving child #2347

@abhinavvaidya-tsd

Description

@abhinavvaidya-tsd

Steps to reproduce

  1. Install partner_contact_address_default.
  2. Install auditlog.
  3. Create a parent with child contacts.
  4. Set child contacts as partner_delivery_id / partner_invoice_id / partner_contact_id.
  5. Archive those child contacts.
  6. Call address_get(["delivery", "invoice", "contact"]).

Current behavior

address_get() may return stale/unexpected ids.

Expected behavior

Archived child defaults should be ignored and fallback values should be returned.

Root cause

Parent default fields are cleared, but cache may still keep stale values in some
module interaction contexts.

Proposed fix

After clearing these fields on parent partners, explicitly invalidate:

  • partner_delivery_id
  • partner_invoice_id
  • partner_contact_id

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions