From d4509b682df0f00db2e6799b85ddd565834a6a6b Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Tue, 16 Jun 2026 16:32:59 +0000 Subject: [PATCH] fix(e-taxes): import now_datetime in sales_api to fix Activity Recording Error sales_api's local record_etaxes_activity() called now_datetime() without importing it -> NameError on every call (caught and logged as noise, but the token-inactivity timer was never updated, risking premature token expiry on long sales imports). Co-Authored-By: Claude Opus 4.8 (1M context) --- invoice_az/sales_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invoice_az/sales_api.py b/invoice_az/sales_api.py index 1f0d4f4..c528e75 100644 --- a/invoice_az/sales_api.py +++ b/invoice_az/sales_api.py @@ -1,6 +1,7 @@ import frappe import json import requests +from frappe.utils import now_datetime from invoice_az import background_tasks from datetime import datetime