-
-
Notifications
You must be signed in to change notification settings - Fork 871
[19.0][MIG] report_pdf_form #1107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 19.0
Are you sure you want to change the base?
Conversation
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
- 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.
be36b59 to
26879bd
Compare
| .. 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>`_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still Alpha ?
There was a problem hiding this comment.
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..
631c757 to
f8b145c
Compare
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.
f8b145c to
90ccc0b
Compare
Standard migration.
"Improvements" deliberatly made in seperate commits for cherry-picking