create_item_groups() ran a 26-record exists-check loop on every migrate (the "Группа X уже существует, пропускаем" spam in migrate logs). Replace with the master_data hash-diff sync: fast-paths via stored file hash, applies only the delta otherwise. Item Group is a tree doctype shared with ERPNext/user groups, so the sync gains two options: is_tree=True (insert via db_insert, rebuild lft/rgt once at the end) and manage_deletes=False (never delete rows absent from the JSON, since the JSON is only the AZ tax-specific subset). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| taxes_az | ||
| .gitignore | ||
| CLAUDE.md | ||
| README.md | ||
| TAX_ARTICLES_NORMALIZATION.md | ||
| TECHNICAL_SPECIFICATION_PROPERTY_TAX_AUTOMATION.md | ||
| check_tax_articles.py | ||
| check_tax_articles_safe.py | ||
| convert-int-to-float.js | ||
| fixtures.json | ||
| float-change.js | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Taxes Az
Azərbaycan Taxes
License
unlicense