"""Shared final-pack active-formula compatibility policy.""" from __future__ import annotations # Lead Convert's previewRecordUpdate currently validates against the full # active Lead formula view. These owner/profile formulas are not referenced by # conversion validation or convert-time mappings, so final-pack assembly keeps # them as plain fields until the runtime can project only needed computed # fields. DEFERRED_ACTIVE_FORMULA_FIELDS = frozenset( { ("Lead", "Lead_Owner_Name__c"), ("Lead", "Owner_IsActive__c"), ("Lead", "Owner_Profile__c"), ("Lead", "Person_Owner_Profile__c"), } )