Skip to content

Commit

Permalink
fix: Appropriate arguments to log_error
Browse files Browse the repository at this point in the history
- misc: Translate error messages
  • Loading branch information
marination authored and barredterra committed Jan 8, 2024
1 parent 4b2033c commit cade53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext_datev/erpnext_datev/report/datev/datev.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ def validate(filters):
validate_fiscal_year(from_date, to_date, company)

if not frappe.db.exists("DATEV Settings", filters.get("company")):
msg = "Please create DATEV Settings for Company {}".format(
msg = _("Please create DATEV Settings for Company {}").format(
filters.get("company")
)
frappe.log_error(msg, title="DATEV Settings missing")
frappe.log_error(message=msg, title=_("DATEV Settings missing"))
return False

return True
Expand Down

0 comments on commit cade53b

Please sign in to comment.