Commit graph

18 commits

Author SHA1 Message Date
Ernad Husremovic
2374290414 fix: QwebJSON circular reference on non-serializable session_info values
The QwebJSON.dumps default handler returned non-serializable objects
unchanged, causing Python's json encoder to report "Circular reference
detected". Use odoo.tools.json.json_default() as fallback to properly
convert ReadonlyDict, lazy, datetime, bytes, Domain and other types.

🤖 assisted by claude
2026-03-10 13:56:35 +01:00
Ernad Husremovic
bbd1d1d065 fix: store res.company.country_id for 19.0 account module compatibility
account_fiscal_country_id depends on country_id which must be stored to be
converted to SQL. Without store=True, installing account module fails with
ValueError: Cannot convert res.company.country_id to SQL.

🤖 assisted by claude
2026-03-09 18:09:45 +01:00
Ernad Husremovic
6219a6a26f revert PyPDF2 3.x shim (now pinned to 2.12.1 via nix)
🤖 assisted by claude
2026-03-09 16:17:25 +01:00
Ernad Husremovic
a91924f712 fix PyPDF2 3.x compat: add cloneReaderDocumentRoot shim
PyPDF2 3.0 removed the camelCase cloneReaderDocumentRoot method.
Add a shim that delegates to clone_reader_document_root.

🤖 assisted by claude
2026-03-09 16:12:07 +01:00
Ernad Husremovic
3037cab43e add rpc addon and fix 19.0 compatibility issues
- add missing rpc addon (auto_install, required by server_wide_modules)
- add __init__.py -> init.py symlink for odoo package importability
- re-export image_process from odoo.tools (needed by web_editor)
- add backward-compatible slug/unslug functions in http_routing

🤖 assisted by claude
2026-03-09 15:19:28 +01:00
Ernad Husremovic
2d3ee4855a 19.0 vanilla 2026-03-09 09:30:27 +01:00
Ernad Husremovic
991d2234ca 19.0 vanilla 2025-10-03 18:07:25 +02:00
Ernad Husremovic
0a7ae8db93 18.0 vanilla 2025-10-03 18:06:50 +02:00
Ernad Husremovic
d72e748793 17.0 vanilla 2025-10-03 18:05:45 +02:00
Ernad Husremovic
df627a6bba 17.0 vanilla 2025-10-03 18:05:14 +02:00
Ernad Husremovic
2e65bf056a 16.0 vanila 2025-10-03 17:53:49 +02:00
Ernad Husremovic
715f5d72f9 rename PATCH_PDFWRITER.md to PATCH_PYPDF2_PDFWRITER.md
🤖 assisted by claude
2025-09-02 19:31:24 +02:00
Ernad Husremovic
3f19943cec fix PyPDF2 3.x page copying issue - prevent 327-byte empty PDFs
Added explicit page copying after cloneReaderDocumentRoot() calls because
PyPDF2 3.x only copies document structure, not content pages.

🤖 assisted by claude
2025-09-02 19:31:11 +02:00
Ernad Husremovic
c3d53c6a4d Add cloneReaderDocumentRoot compatibility method
Fix additional PyPDF2 3.0+ deprecation error for cloneReaderDocumentRoot
method which was replaced with clone_reader_document_root.

Changes:
- Add cloneReaderDocumentRoot compatibility method to PdfFileWriter wrapper
- Update documentation to include the new method mapping
- Resolves account_edi PDF generation error

Resolves PyPDF2.errors.DeprecationError: cloneReaderDocumentRoot is deprecated
and was removed in PyPDF2 3.0.0. Use clone_reader_document_root instead.

🤖 assisted by claude
2025-09-02 19:00:48 +02:00
Ernad Husremovic
e8119c9226 Fix PyPDF2 3.0+ compatibility issues
Add compatibility wrapper classes for PdfFileWriter/PdfFileReader
to support both PyPDF2 2.x and 3.x versions.

Changes:
- Add PdfWriter/PdfReader compatibility wrappers in odoo/tools/pdf.py
- Add compatibility classes in odoo/addons/base/models/ir_actions_report.py
- Create comprehensive documentation in doc/PATCH_PDFWRITER.md

Resolves PyPDF2.errors.DeprecationError: PdfFileWriter is deprecated
and was removed in PyPDF2 3.0.0.

🤖 assisted by claude
2025-09-02 18:47:52 +02:00
Ernad Husremovic
5ee733c06c Fix mermaid cycle error: rename CLI node to CLIEP to avoid conflict with subgraph name
The diagram had a cycle where node 'CLI' was inside subgraph 'CLI', creating:
'Setting CLI as parent of CLI would create a cycle'

Fixed by renaming the node to 'CLIEP' (CLI Entrypoints) to avoid the naming conflict.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 16:59:42 +02:00
Ernad Husremovic
50887b8e47 Add .gitignore for Python cache files 2025-08-29 18:11:23 +02:00
Ernad Husremovic
12c29a983b Initial commit: Core packages 2025-08-29 15:20:45 +02:00