diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 942806ed090..c1ac407d77c 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -322,3 +322,15 @@ regional_overrides = { 'erpnext.controllers.accounts_controller.validate_regional': 'erpnext.regional.italy.utils.sales_invoice_validate', } } +user_privacy_documents = [ + { + 'doctype': 'Lead', + 'match_field': 'email_id', + 'personal_fields': ['phone', 'mobile_no', 'fax', 'website', 'lead_name'], + }, + { + 'doctype': 'Opportunity', + 'match_field': 'contact_email', + 'personal_fields': ['contact_mobile', 'contact_display', 'customer_name'], + } +] \ No newline at end of file