Формы налоговой отчетности Азербайджана для JeyERP
Go to file
Ali 3044e8ae8a fix(master-data): create Items like fixtures (ignore_links) + re-sync after setup wizard
Two problems on image-based deployments where `bench migrate` runs only at
build time (before the setup wizard) and never again:

1. Item insert hit _validate_links and crashed migrate when standard UOMs
   ('Litre'/'Nos') weren't loaded yet. validate() itself passes — only the
   link check fails — so set doc.flags.ignore_links = True, exactly as Frappe's
   fixture import does (import_file.py). The referenced data always exists in a
   real running program, so no dangling links in practice.

2. ERPNext creates the Item Group root with the *translated* name in the setup
   wizard (e.g. Azerbaijani "Bütün Element Qrupları"), after migrate. Groups
   created at build time were parented to the non-existent "All Item Groups"
   and stayed orphaned/invisible in the tree.

Add a setup_wizard_complete hook (after_setup_wizard) that re-runs both syncs
once the wizard has created the real root and standard data: groups get
reparented under the real root and skipped items get created. It never raises
(a throwing task would fail the whole wizard), logging and swallowing instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 16:09:33 +00:00
taxes_az fix(master-data): create Items like fixtures (ignore_links) + re-sync after setup wizard 2026-07-21 16:09:33 +00:00
.gitignore chore(i18n): stop tracking generated locale/*.po copies 2026-07-21 10:38:12 +00:00
CLAUDE.md perf(master-data): sync Item Groups via hash-diff instead of after_migrate loop 2026-05-20 15:30:03 +00:00
README.md chore: use native Azərbaycan spelling in user-facing strings 2026-05-14 10:57:14 +00:00
TECHNICAL_SPECIFICATION_PROPERTY_TAX_AUTOMATION.md Modifed property tax return 2025-12-11 17:26:57 +04:00
check_tax_articles.py fixed tax article report bugs 2026-02-06 14:59:12 +04:00
check_tax_articles_safe.py fixed tax article report bugs 2026-02-06 14:59:12 +04:00
convert-int-to-float.js added precision to all floats 2025-08-27 14:56:35 +04:00
edv_butun_dusturlar.md feat(vat): live column calculations + read-only for ƏDV declaration 2026-07-15 13:53:20 +00:00
edv_formulas.xlsx feat(vat): live column calculations + read-only for ƏDV declaration 2026-07-15 13:53:20 +00:00
fixtures.json Added test fixtures and edited hooks.py 2024-12-19 11:49:02 +00:00
float-change.js added precision to all floats 2025-08-27 14:56:35 +04:00
license.txt feat: Initialize App 2024-09-11 12:48:17 +00:00
n push from mvp 2026-07-09 11:02:04 +00:00
pyproject.toml chore: use native Azərbaycan spelling in user-facing strings 2026-05-14 10:57:14 +00:00

README.md

Taxes Az

Azərbaycan Taxes

License

unlicense