From 2b0e89191a6465a8c8adfa1c4dd02900eeeb4df2 Mon Sep 17 00:00:00 2001 From: webmaster Date: Tue, 3 Nov 2026 22:59:53 +0000 Subject: [PATCH] directory card photos: load from the image endpoint, not inline base64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The webhook no longer sends `Image`, so the card photo comes from its own endpoint, addressed by the record id — one per card, one request. - static/expert-image.js: the route AND its query-parameter name in ONE constant (id, confirmed by measurement; unverified in the brief), plus an optional version token used only when the payload carries one. - Directory card: , width/height reserve the 72x72 box, decoding=async, eager for the first row and lazy below it; onerror swaps in the SAME monogram a card with no photo shows, so a failing image looks exactly like today. - The static build-time card loses its 185 KB inline base64 photo and shows a monogram: it is the no-JavaScript fallback, where there is no onerror to fall back with. Page 341,345 -> 158,428 bytes. - /freelancer-edit/: the photo block is a look, not a field (no file input), and the whole-record save sends NO `Image` key at all. --- freelancer-edit/index.html | 76 +++++++++++--------------- odoo-community-developers/index.html | 81 +++++++++++++++++++--------- static/expert-image.js | 48 +++++++++++++++++ 3 files changed, 134 insertions(+), 71 deletions(-) create mode 100644 static/expert-image.js diff --git a/freelancer-edit/index.html b/freelancer-edit/index.html index 06590a6..2f1ca69 100644 --- a/freelancer-edit/index.html +++ b/freelancer-edit/index.html @@ -149,6 +149,7 @@ +
- +

Oliver - The OC Guy

OCA Member Profile @@ -2052,6 +2052,7 @@ +