fix: use the new extend_doctype_class
hook by sagarvora [frappe] PR#49506
From: https://github.com/frappe/erpnext/pull/49506
Date: 2025-09-09 06:21:19+00:00
- Merge pull request #49506 from sagarvora/extend-not-override
- fix: use the new
extend_doctype_class
hook
Diagnostics
pre-commit failed for source commit: a028d856bc0fb25bbc951fcecfb932909dee2a22
[WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo.
erpnext/accounts/custom/address.py:49:6: F811 Redefinition of unused `on_update` from line 18
Found 1 error.
1 file reformatted, 1 file left unchanged
Suspicious merge commit detected: 09d9c0ddd32b87ba400f9e3ed6a914ab15b5e0f4
Suspicious changes found (Dokos Only / dokos):
* 00af39a46a11f006e3577fd41f90692920e8ffce fix: use the new `extend_doctype_class` hook
```diff
```
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-49506
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-49506
# Make changes then rebase
git rebase -i develop
# Fix or ignore conflicts
git checkout --theirs .
git rebase --continue
# Force-push changes
git push --force-with-lease