Skip to content

Conversation

@bosd
Copy link
Contributor

@bosd bosd commented Dec 18, 2025

Standard migration.

"Improvements" deliberatly made in seperate commits for cherry-picking

grindtildeath and others added 10 commits December 18, 2025 19:37
The use of mapped() can raise an AttributeError if any field in the dot-separated path does not exist (e.g., a typo in the configuration). This would crash the report generation. It's better to handle this potential error gracefully, for instance by catching the exception and returning an empty recordset, which will result in an empty value for the field.
Changes made:

- Properly handle many2one field formatting to prevent TypeError
Added SQL constraint to ensure that each ir.actions.report can only be associated with one PDF form template, preventing unpredictable behavior when multiple templates share the same report_name.
…de fields

Added ace code editor widget with Python syntax highlighting to:

- odoo_field_value field in field mapping

- code field in variables
@bosd bosd marked this pull request as ready for review December 18, 2025 21:14
bosd and others added 4 commits December 30, 2025 09:06
- Demo data for testing the module with sample configurations

- Documentation on how to use demo data

- Information about tools to create PDF form fields (docfly.com, LibreOffice Draw, Scribus)
…lity

This commit adds several enhancements to the report_pdf_form module:

- Add validation for dotted field paths with visual indicators

- Add manual validation button for field mappings

- Add PDF preview functionality with sample data

- Improve demo data with deeper dotted path examples

- Enhance configuration documentation with PDF upload clarification

Co-authored-by: Akim Juillerat <akim.juillerat@camptocamp.com>
This commit fixes translation formatting issues by using .format() method

instead of % formatting for all translation strings to comply with

Odoo's translation best practices.
@bosd bosd force-pushed the 19.0-mig-report_pdf_form branch from be36b59 to 26879bd Compare December 30, 2025 08:06
Comment on lines +53 to +56
.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still Alpha ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so.. This is the first migration. And have been adding some features.
Ci is 🔴 😿

Maybe later promote it to beta? Will check the requirements..

@bosd bosd force-pushed the 19.0-mig-report_pdf_form branch 3 times, most recently from 631c757 to f8b145c Compare January 24, 2026 20:31
fix(report_pdf_form): move binding to PDF form record

This commit moves the binding configuration from the ir.actions.report

record to the actual report.pdf.form record, which is the proper

location for the binding since the module inherits from ir.actions.report

using _inherits. This ensures the demo report appears in the contact's

print menu.
@bosd bosd force-pushed the 19.0-mig-report_pdf_form branch from f8b145c to 90ccc0b Compare January 24, 2026 20:34
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.

5 participants