fix(leadscraper): make address creation non-fatal, fix license metadata #13

Merged
csaeum merged 1 commit from fix/update-compat-crm-1-92 into main 2026-11-15 11:30:46 +00:00
Owner

Context

Compatibility check against ERPNext 16.55 / Frappe 16.56 / Frappe CRM 1.92.0 on a fresh site. Schema, fixtures, hook, tags, duplicate note and Lead->Deal address carry-over all work unchanged; Lead Owner stays empty on import.

Changes

  • crm_lead_sync.py: wrap create_lead_address() in a savepoint + try/except. A missing default Address Template (fresh site without setup wizard) no longer aborts the lead import; the address part is rolled back and the error is logged.
  • hooks.py: app_license set to agpl-3.0; leftover MIT license.txt removed (AGPL LICENSE stays).
  • Projekt.md: tag scheme vJJJJ-MM-X and Frappe upstream references added.

Verification

Live on the demo site (CRM 1.92.0): forced an address failure after insert -> lead created, no stray Address, Error Log entry written. Full import -> duplicate -> convert-to-deal run passes.

Related: frappe-crm-erp fix/pin-crm-version (CRM pin + setup wizard docs).

🤖 Generated with Claude Code

## Context Compatibility check against ERPNext 16.55 / Frappe 16.56 / Frappe CRM 1.92.0 on a fresh site. Schema, fixtures, hook, tags, duplicate note and Lead->Deal address carry-over all work unchanged; Lead Owner stays empty on import. ## Changes - `crm_lead_sync.py`: wrap `create_lead_address()` in a savepoint + try/except. A missing default Address Template (fresh site without setup wizard) no longer aborts the lead import; the address part is rolled back and the error is logged. - `hooks.py`: `app_license` set to `agpl-3.0`; leftover MIT `license.txt` removed (AGPL `LICENSE` stays). - `Projekt.md`: tag scheme `vJJJJ-MM-X` and Frappe upstream references added. ## Verification Live on the demo site (CRM 1.92.0): forced an address failure after insert -> lead created, no stray Address, Error Log entry written. Full import -> duplicate -> convert-to-deal run passes. Related: frappe-crm-erp `fix/pin-crm-version` (CRM pin + setup wizard docs). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Wrap create_lead_address() in a savepoint + try/except so a missing
  Address Template no longer aborts the lead import; log the error.
- Set app_license to agpl-3.0 and remove the leftover MIT license.txt.
- docs(projekt): add tag scheme vYYYY-MM-X and Frappe upstream references.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
csaeum merged commit 2631bdea66 into main 2026-11-15 11:30:46 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Frappe-Projekte/LeadScraper-Google!13
No description provided.