Skip to content

Conversation

@inluck
Copy link

@inluck inluck commented Jan 7, 2026

No description provided.

claude added 2 commits January 7, 2026 13:39
Phase 1: Odoo 18 Compatibility
- Fix duplicate _description attribute in SignRequestLog model
- Fix translation strings to use lazy evaluation (%(name)s format)
- Replace deprecated _ import with request.env._ in controllers
- Remove superfluous "installable" key from manifest

Phase 2-3: Data Corruption and Crash Fixes
- Fix project_task.py write() method to properly handle multi-record updates
- Fix _compute_next_item_id to handle empty signatory_data dict
- Fix _compute_task_id and _compute_project_id to assign values to all records

Phase 4-6: Security and Bug Fixes
- Fix security vulnerability in portal_download_signed allowing unauthorized downloads
- Fix cancel() method to properly log actions for multiple records

All changes verified with pylint-odoo linting.
The getPdfUrl() method in sign_oca_pdf_common.esm.js was using a
path-based URL format that causes 404 errors in Odoo 18:
- Old: /web/content/sign.oca.request/3/data
- New: /web/content?model=sign.oca.request&id=3&field=data

The query parameter format is more reliable because:
1. Handles model names with dots (like sign.oca.request) correctly
2. Is the standard format used by other Odoo modules
3. More explicit about the binary field being requested

This fixes the blank PDF viewer issue in configure and preview screens.
@OCA-git-bot
Copy link
Contributor

Hi @WesleyOliveira98, @etobella,
some modules you are maintaining are being modified, check this out!

@inluck inluck closed this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants