Skip to content

[18.0][FIX] pos_config_logo: embed POS logo on the receipt - #1607

Open
MiguelMachadoM wants to merge 1 commit into
OCA:18.0from
MiguelMachadoM:18.0-fix-pos-config-logo-receipt-embed
Open

[18.0][FIX] pos_config_logo: embed POS logo on the receipt#1607
MiguelMachadoM wants to merge 1 commit into
OCA:18.0from
MiguelMachadoM:18.0-fix-pos-config-logo-receipt-embed

Conversation

@MiguelMachadoM

@MiguelMachadoM MiguelMachadoM commented Aug 31, 2026

Copy link
Copy Markdown

The 18.0 migration used ${session._base_url}/web/image?model=pos.config. That URL needs a session; pos.config.logo is not public. If the host does not match web.base.url (or print has no cookie), Odoo returns the camera placeholder.

This restores a data URI from the binary already loaded on the POS (16.0 behaviour), with a relative /web/image fallback.

Independent of #1546. Runboat often does not reproduce this (same host as web.base.url). See odoo/odoo#228173.

@MiguelMachadoM
MiguelMachadoM force-pushed the 18.0-fix-pos-config-logo-receipt-embed branch 3 times, most recently from f38ef25 to 0b73638 Compare August 31, 2026 13:27
The 18.0 migration used an absolute web.base.url image URL that
returns the camera placeholder without a session. Embed the binary
already loaded on the POS, as 16.0 did with a data URI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@MiguelMachadoM
MiguelMachadoM force-pushed the 18.0-fix-pos-config-logo-receipt-embed branch from 0b73638 to fb879df Compare August 31, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants