invoice_az/invoice_az
Ali 6647c4a351 fix(amas): complete missing TLS chain dynamically + hide raw errors from UI
eroom.e-social.gov.az serves an incomplete certificate chain (omits the
intermediate CA that signs its leaf), so Python requests raised
CERTIFICATE_VERIFY_FAILED on the ƏMAS wizard/employee-load step. Browsers
paper over this via AIA; requests does not.

Fix without vendoring any cert into the repo: read the AIA "CA Issuers"
pointer out of the live leaf, download the missing intermediate(s) straight
from the issuer, and cache them outside the repo. Route all AMAS/MyGovID
calls through _amas_http, which self-heals across CA rotations by re-fetching
and retrying once on SSLError. SSL verification stays ON (not verify=False).

Also stop leaking raw exception strings to the UI: every AMAS-facing return
now logs the full traceback and shows the generic, localized
"ƏMAS unavailable" message. Added az/ru translations for it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 10:29:54 +00:00
..
client feat(purchase): import alış aktı (purchase acts) from e-taxes 2026-07-10 10:28:22 +00:00
config feat: Initialize App 2025-04-24 18:29:13 +04:00
invoice_az feat(purchase): import alış aktı (purchase acts) from e-taxes 2026-07-10 10:28:22 +00:00
locale fix(amas): complete missing TLS chain dynamically + hide raw errors from UI 2026-07-21 10:29:54 +00:00
master_data fix(master-data): drop file-hash fast-path so sync always reconciles DB 2026-05-20 16:14:58 +00:00
patches removed all backup files 2026-03-03 17:44:48 +04:00
public feat(background-tasks): per-user background job registry + global widget 2026-06-16 16:02:02 +00:00
scripts added more fucntionality in journal entry import 2026-01-14 23:00:55 +04:00
templates feat: Initialize App 2025-04-24 18:29:13 +04:00
__init__.py feat: Initialize App 2025-04-24 18:29:13 +04:00
amas_api.py fix(amas): complete missing TLS chain dynamically + hide raw errors from UI 2026-07-21 10:29:54 +00:00
api.py feat(purchase): import alış aktı (purchase acts) from e-taxes 2026-07-10 10:28:22 +00:00
auth.py fixed invoices date 2025-09-08 21:52:04 +04:00
background_tasks.py fix(background-tasks): atomic per-job hash storage to stop concurrent-load flicker 2026-06-16 16:32:54 +00:00
company_api.py Remove E-Taxes Obligation Pact doctype and its loader 2026-05-15 16:07:06 +00:00
hooks.py fix(client): stop duplicate form handlers; remove tax_type grid toggle 2026-06-23 11:43:32 +00:00
modules.txt feat: Initialize App 2025-04-24 18:29:13 +04:00
patches.txt removed all backup files 2026-03-03 17:44:48 +04:00
sales_api.py feat(loads): 2h import timeout + forbid loading more than one year 2026-06-17 09:45:01 +00:00
send_purchase_api.py chore: use native Azərbaycan spelling in user-facing strings 2026-05-14 10:57:16 +00:00
send_sales_api.py fix(e-taxes): stop Loading Data spinner sticking over progress bar; surface list load buttons; client + send_sales_api updates; az locale 2026-06-10 17:52:03 +00:00
setup_defaults.py feat(e-taxes-settings): auto-fill Default Item Group & UOM on install 2026-06-15 11:20:11 +00:00
supplier_api.py chore: use native Azərbaycan spelling in user-facing strings 2026-05-14 10:57:16 +00:00
utils.py feat(loads): 2h import timeout + forbid loading more than one year 2026-06-17 09:45:01 +00:00
vat_api.py feat(loads): 2h import timeout + forbid loading more than one year 2026-06-17 09:45:01 +00:00
vat_operations.py fixed bug with tittle and other 2026-01-21 19:38:10 +04:00