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>
|
||
|---|---|---|
| taxes_az | ||
| .gitignore | ||
| CLAUDE.md | ||
| README.md | ||
| TECHNICAL_SPECIFICATION_PROPERTY_TAX_AUTOMATION.md | ||
| check_tax_articles.py | ||
| check_tax_articles_safe.py | ||
| convert-int-to-float.js | ||
| edv_butun_dusturlar.md | ||
| edv_formulas.xlsx | ||
| fixtures.json | ||
| float-change.js | ||
| license.txt | ||
| n | ||
| pyproject.toml | ||
README.md
Taxes Az
Azərbaycan Taxes
License
unlicense