mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
Merge pull request #33140 from frappe/mergify/bp/version-14-hotfix/pr-33139
fix: reposting error `AttributeError: 'datetime.timedelta' object has no attribute 'replace'` (backport #33139)
This commit is contained in:
@@ -263,8 +263,8 @@ def repost_future_sle(
|
|||||||
|
|
||||||
def validate_item_warehouse(args):
|
def validate_item_warehouse(args):
|
||||||
for field in ["item_code", "warehouse", "posting_date", "posting_time"]:
|
for field in ["item_code", "warehouse", "posting_date", "posting_time"]:
|
||||||
if not args.get(field):
|
if args.get(field) in [None, ""]:
|
||||||
validation_msg = f"The field {frappe.unscrub(args.get(field))} is required for the reposting"
|
validation_msg = f"The field {frappe.unscrub(field)} is required for the reposting"
|
||||||
frappe.throw(_(validation_msg))
|
frappe.throw(_(validation_msg))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user