Assem Bahnasy
a49e2de866
fix: use RecoverableErrors isinstance check for repost timeout status
...
When a Repost Item Valuation job is killed by an RQ worker timeout
(JobTimeoutException raised via SIGALRM), the existing status detection
relied solely on traceback string matching for 'timeout' or 'Deadlock'.
This is unreliable because SIGALRM can interrupt a C-extension call
(e.g. inside pypika's copy.copy()) before Python records the exception
in the traceback. In that case the traceback shows only the interrupted
frame -- not JobTimeoutException -- so the job is permanently marked
'Failed' instead of 'In Progress', preventing the scheduler from
automatically retrying it.
RecoverableErrors = (JobTimeoutException, QueryDeadlockError,
QueryTimeoutError) is already defined at the top of this file and is
already used further down in the same except block to suppress email
notifications. Extend its use to also guard the status decision.
The traceback string fallback is kept as a secondary check for
forward compatibility with other timeout signals.
Fixes: jobs permanently stuck as 'Failed' after RQ worker timeout,
requiring manual re-queue to resume reposting.
2026-04-27 07:05:35 +00:00
mergify[bot]
b01049814a
refactor: quality inspection item query (backport #54511 ) ( #54539 )
...
* refactor: quality inspection item query (#54511 )
(cherry picked from commit be2a4b7b2a )
# Conflicts:
# erpnext/stock/doctype/quality_inspection/quality_inspection.py
* chore: resolve conflicts
---------
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
2026-04-27 05:51:18 +00:00
mergify[bot]
973444e20e
feat: danish_bosnian_address_template (backport #54093 ) ( #54515 )
...
feat: danish_bosnian_address_template (#54093 )
(cherry picked from commit e517eeaaa2 )
Co-authored-by: mahsem <137205921+mahsem@users.noreply.github.com >
2026-04-26 21:06:37 +05:30
mergify[bot]
68d213a244
fix(stock): set incoming rate as zero for outward sle (backport #54514 ) ( #54532 )
...
fix(stock): set incoming rate as zero for outward sle
(cherry picked from commit ce37530e70 )
Co-authored-by: Sudharsanan11 <sudharsananashok1975@gmail.com >
2026-04-26 20:24:43 +05:30
mergify[bot]
6df39aec54
fix(PCV): set correct filters of from_date and to_date on General Ledger Report on clicking Ledger button (backport #54522 ) ( #54523 )
...
Co-authored-by: diptanilsaha <diptanil@frappe.io >
fix(PCV): set correct filters of `from_date` and `to_date` on General Ledger Report on clicking `Ledger` button (#54522 )
2026-04-25 00:06:32 +05:30
Mihir Kandoi
1b08ac248b
Revert "fix: preserve inventory dimensions when raw materials are reset (backport #54440 )" ( #54507 )
...
Revert "fix: preserve inventory dimensions when raw materials are reset (back…"
This reverts commit 722dc8c3f1 .
2026-04-24 08:43:59 +00:00
mergify[bot]
722dc8c3f1
fix: preserve inventory dimensions when raw materials are reset (backport #54440 ) ( #54492 )
...
* fix: preserve inventory dimensions when raw materials are reset (#54440 )
* fix: preserve inventory dimensions when raw materials are reset
* test: add test case
(cherry picked from commit 0e20e35842 )
# Conflicts:
# erpnext/patches.txt
# erpnext/subcontracting/doctype/subcontracting_receipt/subcontracting_receipt.js
# erpnext/subcontracting/doctype/subcontracting_receipt/test_subcontracting_receipt.py
* chore: resolve conflicts
* chore: resolve conflicts
* chore: resolve conflicts
---------
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
2026-04-23 17:27:07 +00:00
mergify[bot]
e0013f7618
fix(edi): restrict Code List imports to files and trusted backend URLs (backport #54137 ) ( #54265 )
...
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com >
fix(edi): restrict Code List imports to files and trusted backend URLs (#54137 )
fix(edi): hardcode "Code List" DocType in importer (#54488 )
2026-04-23 15:37:39 +00:00
Smit Vora
017635ab04
Merge pull request #54451 from vorasmit/tds-reports-refactor-backport
2026-04-23 15:25:46 +05:30
Smit Vora
8f9a5e6c0c
fix: use key consistently
2026-04-23 15:01:46 +05:30
mergify[bot]
9a4c693f2d
fix: sales order is not valid when creating WO from MR from PP (backport #54435 ) ( #54470 )
...
fix: sales order is not valid when creating WO from MR from PP (#54435 )
(cherry picked from commit e65b9fc2ae )
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
2026-04-22 15:05:29 +00:00
mergify[bot]
6179449036
fix: py error on stock ageing report (backport #54467 ) ( #54468 )
...
fix: py error on stock ageing report (#54467 )
(cherry picked from commit f5357c233d )
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
2026-04-22 14:32:21 +00:00
Smit Vora
a3ad1fb163
fix: add party_type for dynamic link and add it to grouping key
2026-04-22 12:12:18 +05:30
Smit Vora
8e12bda108
refactor: better label for entity type
2026-04-22 12:11:04 +05:30
Ravibharathi
947b282e0c
Merge pull request #54452 from frappe/mergify/bp/version-15-hotfix/pr-54307
...
fix(accounts): fetch project name from payment entry to journal entry (backport #54307 )
2026-04-22 11:24:29 +05:30
sarathibalamurugan
f9ae22d85e
test: add test for project name in exchange gain loss entry
...
(cherry picked from commit 9eeb819106 )
# Conflicts:
# erpnext/accounts/doctype/payment_entry/test_payment_entry.py
2026-04-22 11:05:18 +05:30
diptanilsaha
bd957a9bbc
Revert "feat: enhance tax withholding details report with additional columns support (backport #54409 )" ( #54458 )
2026-04-21 18:49:08 +00:00
Lakshit Jain
e22326065d
feat: enhance tax withholding details report with additional columns support (backport #54409 ) ( #54432 )
2026-04-22 00:02:19 +05:30
sarathibalamurugan
55cce2a11c
fix(accounts): fetch project name from payment entry to journal entry
...
(cherry picked from commit d9b255b952 )
2026-04-21 13:29:16 +00:00
Smit Vora
7630c01e40
refactor: use consistent report column names
2026-04-21 18:53:25 +05:30
Ravibharathi
bd4eb71205
Merge pull request #54423 from frappe/mergify/bp/version-15-hotfix/pr-54415
...
fix: clear conditions table when calculate_based_on is set to Fixed (backport #54415 )
2026-04-20 19:44:36 +05:30
ravibharathi656
9e10ecc4cb
fix: clear shipping rule conditions for fixed shipping rule
...
(cherry picked from commit d6bb0ae093 )
2026-04-20 13:53:03 +00:00
sarathibalamurugan
35bd43775c
fix: clear conditions table when calculate_based_on is set to Fixed
...
(cherry picked from commit d73920be12 )
2026-04-20 13:53:02 +00:00
mergify[bot]
813f4644a0
fix(pos_invoice_item): fetch grant_commission from item_code (backport #54413 ) ( #54417 )
...
* fix(pos_invoice_item): fetch `grant_commission` from `item_code` (#54413 )
(cherry picked from commit 6c51e4cd1f )
# Conflicts:
# erpnext/accounts/doctype/pos_invoice_item/pos_invoice_item.json
* chore: resolve conflicts
---------
Co-authored-by: diptanilsaha <diptanil@frappe.io >
2026-04-20 11:48:06 +00:00
Ravibharathi
2c1ea8d30c
fix(vat audit report): fallback to item name when item code is missing ( #54049 )
...
* fix(vat audit report): fallback to item name when item code is missing
* fix: validate south africa company selection
* fix: simplify parent item lookup
* fix: handle missing item mapping
* fix: use list instead of set
2026-04-20 15:56:37 +05:30
Pandiyan P
ffa0268a57
fix: fetch item tax template from item group when creating item ( #54405 )
2026-04-20 11:58:16 +05:30
mergify[bot]
1ccbc9f621
fix: changed qty validation from qty field to stock_qty (backport #54352 ) ( #54356 )
...
fix: changed qty validation from qty field to stock_qty (#54352 )
(cherry picked from commit ba01d66c24 )
Co-authored-by: Jatin3128 <140256508+Jatin3128@users.noreply.github.com >
2026-04-20 10:53:44 +05:30
mergify[bot]
799f897036
fix(dashboard-trends): set default fiscal year and company before val… (backport #54339 ) ( #54399 )
...
* fix(dashboard-trends): set default fiscal year and company before val… (#54339 )
* fix(dashboard-trends): set default fiscal year and company before validating filters Ensure and are populated with default values
* fix(dashboard-trends): ensure fiscal_year and company are properly set before validation to avoid empty filter issues
* Update erpnext/controllers/trends.py
---------
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
(cherry picked from commit d61b5fd5f6 )
# Conflicts:
# erpnext/controllers/trends.py
* chore: resolve conflicts
---------
Co-authored-by: Ahmed AbuKhatwa <82771130+AhmedAbokhatwa@users.noreply.github.com >
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
2026-04-19 19:34:19 +05:30
mergify[bot]
6b7bdfdfd3
Fix : None handling in pricing rule free item quantity calculation (backport #54375 ) ( #54395 )
...
Fix : None handling in pricing rule free item quantity calculation (#54375 )
* fix(pricing_rule): handle None qty in transaction_qty calculation
* Update erpnext/accounts/doctype/pricing_rule/utils.py
---------
(cherry picked from commit 82438d6c72 )
Co-authored-by: Jaganath-Tridots <jaganath@tridotstech.com >
Co-authored-by: Jagan <jagan@DESKTOP-HPDMQ06.localdomain >
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
2026-04-19 07:57:37 +00:00
rohitwaghchaure
e3374933ed
Merge pull request #54359 from frappe/mergify/bp/version-15-hotfix/pr-54354
...
fix: negative batch report showing same batch-warehouse multiple times (backport #54354 )
2026-04-17 21:26:16 +05:30
Rohit Waghchaure
3229fce9a5
fix: negative batch report showing same batch-warehouse multiple times
...
(cherry picked from commit 700572980d )
2026-04-17 15:41:47 +00:00
mergify[bot]
d9d8fc6912
fix: move make_dimension_in_accounting_doctypes from after_insert to on_update (backport #54172 ) ( #54317 )
...
* fix: move make_dimension_in_accounting_doctypes from after_insert to on_update
(cherry picked from commit ee067e6015 )
# Conflicts:
# erpnext/accounts/doctype/accounting_dimension/accounting_dimension.py
* chore: resolve conflicts in accounting_dimension.py
---------
Co-authored-by: Shllokkk <shllokosan23@gmail.com >
2026-04-17 15:14:17 +05:30
mergify[bot]
28367ac966
fix: reset base_rounded_total when rounded_total resets (backport #54241 ) ( #54303 )
...
* fix: reset base_rounded_total when rounded_total resets
(cherry picked from commit f8d278b733 )
# Conflicts:
# erpnext/controllers/tests/test_taxes_and_totals.py
# erpnext/public/js/controllers/taxes_and_totals.js
* chore: spelling mistake
(cherry picked from commit e2ac476587 )
* chore: resolve conflicts
---------
Co-authored-by: ljain112 <ljain112@gmail.com >
2026-04-16 10:39:57 +05:30
NaviN
67632e81d0
Merge pull request #54308 from frappe/mergify/bp/version-15-hotfix/pr-54306
...
fix: non-collapsible in customer quick entry (backport #54306 )
2026-04-15 17:32:16 +05:30
PKSowmiya05
9ee059465a
fix: non-collapsible in customer quick entry
...
(cherry picked from commit 53e120269d )
2026-04-15 11:56:39 +00:00
mergify[bot]
1e4cafaa0e
fix: add portal user ownership check to supplier quotation (backport #54298 ) ( #54299 )
...
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
fix: add portal user ownership check to supplier quotation (#54298 )
2026-04-15 06:07:23 +00:00
mergify[bot]
8b3d65ae78
Revert "fix: sync paid and received amount" (backport #54238 ) ( #54292 )
...
Co-authored-by: Vishnu Priya Baskaran <145791817+ervishnucs@users.noreply.github.com >
fix: sync paid and received amount" (#54238 )
2026-04-14 22:27:04 +05:30
mergify[bot]
0e9b3b459a
fix(stock): remove float precision to fix precision issue (backport #54284 ) ( #54288 )
...
Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com >
fix(stock): remove float precision to fix precision issue (#54284 )
2026-04-14 11:33:23 +00:00
mergify[bot]
46a1c6fda0
fix(stock): update bin to zero when no previous sle exists (backport #54236 ) ( #54263 )
...
Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com >
fix(stock): update bin to zero when no previous sle exists (#54236 )
2026-04-13 15:49:45 +00:00
mergify[bot]
cbe5ad6337
fix: make operation mandatory when any sub operation row is added (backport #54245 ) ( #54247 )
...
Co-authored-by: Sudarshan <73628063+sudarsan2001@users.noreply.github.com >
fix: make operation mandatory when any sub operation row is added (#54245 )
2026-04-13 21:06:05 +05:30
mergify[bot]
17ce550417
Fix(bom): refetch the rate of item when 'source_from_supplier' is updated (backport #54187 ) ( #54207 )
...
Co-authored-by: Sambhav Saxena <76242518+sambhavsaxena@users.noreply.github.com >
Fix(bom): refetch the rate of item when 'source_from_supplier' is updated (#54187 )
2026-04-10 23:44:55 +05:30
mergify[bot]
430705f56c
fix: account change in warehouse (backport #54182 ) ( #54204 )
...
Co-authored-by: nishkagosalia <nishka.gosalia@gmail.com >
2026-04-10 20:32:33 +05:30
mergify[bot]
0a3f9f0b9f
fix: update return value in workstation list view indicator (backport #54198 ) ( #54200 )
...
Co-authored-by: Praveenkumar Dhanasekar <164200710+Praveenku-mar@users.noreply.github.com >
fix: update return value in workstation list view indicator (#54198 )
2026-04-10 16:50:32 +05:30
mergify[bot]
cb24d9404d
fix: remove unneccessary function for serial no status updation (backport #54191 ) ( #54196 )
...
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
fix: remove unneccessary function for serial no status updation (#54191 )
2026-04-10 10:53:04 +00:00
Nishka Gosalia
bc6780d4c7
Merge pull request #54179 from frappe/revert-54170-mergify/bp/version-15-hotfix/pr-54165
...
fix: update_nsm only in warehouse creation (backport #54165 )"
2026-04-09 18:31:00 +05:30
Nishka Gosalia
8b16c310f4
Revert "fix: update_nsm only in warehouse creation (backport #54165 )"
2026-04-09 18:12:46 +05:30
mergify[bot]
76e910e8c0
fix: sanitize genericode import inputs and secure XML parser (backport #53302 ) ( #54174 )
...
Co-authored-by: Shllokkk <shllokosan23@gmail.com >
2026-04-09 11:30:24 +00:00
Nishka Gosalia
c44ec7eab4
Merge pull request #54170 from frappe/mergify/bp/version-15-hotfix/pr-54165
...
fix: update_nsm only in warehouse creation (backport #54165 )
2026-04-09 16:29:32 +05:30
Nishka Gosalia
e9c1a09af3
fix: update_nsm only in warehouse creation ( #54165 )
...
(cherry picked from commit b0e3fa3979 )
2026-04-09 10:28:14 +00:00
rohitwaghchaure
8843068da9
Merge pull request #54162 from frappe/mergify/bp/version-15-hotfix/pr-54161
...
fix: set default posting time in RIV (backport #54161 )
2026-04-09 15:28:12 +05:30