fix: posting_time issue by rohitwaghchaure [frappe] PR#44870
From: https://github.com/frappe/erpnext/pull/44870
Date: 2024-12-24 09:06:37+05:30
- fix: posting_time issue (#44870)
Diagnostics
pre-commit failed for source commit: 079b86044efce7bf04c94900cdde6b1119c53fb2
[WARNING] top-level `default_stages` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this.
[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/stock/deprecated_serial_batch.py:11:3: F821 Undefined name `deprecated`
erpnext/stock/deprecated_serial_batch.py:37:3: F821 Undefined name `deprecated`
erpnext/stock/deprecated_serial_batch.py:95:3: F821 Undefined name `deprecated`
erpnext/stock/deprecated_serial_batch.py:102:3: F821 Undefined name `deprecated`
erpnext/stock/deprecated_serial_batch.py:152:3: F821 Undefined name `deprecated`
erpnext/stock/deprecated_serial_batch.py:190:3: F821 Undefined name `deprecated`
erpnext/stock/deprecated_serial_batch.py:195:3: F821 Undefined name `deprecated`
erpnext/stock/deprecated_serial_batch.py:242:3: F821 Undefined name `deprecated`
Found 8 errors.
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-44870
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-44870
# 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