-
-
Notifications
You must be signed in to change notification settings - Fork 872
[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
Open
bosd
wants to merge
15
commits into
OCA:19.0
Choose a base branch
from
bosd:19.0-mig-report_pdf_form
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,085
−0
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8cea699
[ADD] report_pdf_form
grindtildeath aa0ba99
[UPD] Update report_pdf_form.pot
ed65bb4
[BOT] post-merge updates
OCA-git-bot f0a518e
Added translation using Weblate (Italian)
mymage b341ce1
Added translation using Weblate (Dutch)
bosd 2800505
[MIG] report_pdf_form: Migration to 19.0
a98a6b9
[IMP] report_pdf_form: prevent crash from non exsisting path
bosd e2236e3
[IMP] report_pdf_form: Fix field formatting
b71888e
[IMP] report_pdf_form: Add unique constraint on report_id
1997ecb
[IMP] report_pdf_form: Add code widget to field value and variable co…
00b0174
[IMP] report_pdf_form: Add demo data and documentation updates
9169600
[IMP] report_pdf_form: improve documentation
bosd 8aa56f1
[IMP] report_pdf_form: add field validation and PDF preview functiona…
bosd 26879bd
[IMP] report_pdf_form: fix translation formatting issues
bosd 90ccc0b
[IMP] report_pdf_form: Various improvements
bosd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| .. image:: https://odoo-community.org/readme-banner-image | ||
| :target: https://odoo-community.org/get-involved?utm_source=readme | ||
| :alt: Odoo Community Association | ||
|
|
||
| =============== | ||
| Report PDF Form | ||
| =============== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:50d8a5bc56259a22c4c2ac64ba9b38c9d5755859dee53f93a0dbd06b84b7a15a | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png | ||
| :target: https://odoo-community.org/page/development-status | ||
| :alt: Alpha | ||
| .. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png | ||
| :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||
| :alt: License: LGPL-3 | ||
| .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github | ||
| :target: https://github.com/OCA/reporting-engine/tree/19.0/report_pdf_form | ||
| :alt: OCA/reporting-engine | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-report_pdf_form | ||
| :alt: Translate me on Weblate | ||
| .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
| :target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=19.0 | ||
| :alt: Try me on Runboat | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This module allows to use PDF files having form fields as Odoo reports | ||
| to be printed with values being filled from Odoo records. | ||
|
|
||
| This module mostly reuses features that were implemented by Odoo in the | ||
| sale_pdf_quotation_builder module. | ||
|
|
||
| Creating PDF Form Fields | ||
| ------------------------ | ||
|
|
||
| To create PDFs with form fields for use with this module, you can use | ||
| various tools: | ||
|
|
||
| - **docfly.com**: An online tool for adding form fields to PDFs | ||
| - **LibreOffice Draw**: Part of the LibreOffice suite, can add form | ||
| fields to PDFs | ||
| - **Scribus**: A desktop publishing application that can create PDFs | ||
| with form fields | ||
|
|
||
| .. 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>`_ | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Known issues / Roadmap | ||
| ====================== | ||
|
|
||
| Add a dedicated report type to avoid having to define a qweb template | ||
| and have everything on ir.actions.report. | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_. | ||
| In case of trouble, please check there if your issue has already been reported. | ||
| If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
| `feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_pdf_form%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Do not contact contributors directly about support or help with technical issues. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ------- | ||
|
|
||
| * Camptocamp | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| - Akim Juillerat akim.juillerat@camptocamp.com | ||
|
|
||
| Maintainers | ||
| ----------- | ||
|
|
||
| This module is maintained by the OCA. | ||
|
|
||
| .. image:: https://odoo-community.org/logo.png | ||
| :alt: Odoo Community Association | ||
| :target: https://odoo-community.org | ||
|
|
||
| OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
| mission is to support the collaborative development of Odoo features and | ||
| promote its widespread use. | ||
|
|
||
| .. |maintainer-grindtildeath| image:: https://github.com/grindtildeath.png?size=40px | ||
| :target: https://github.com/grindtildeath | ||
| :alt: grindtildeath | ||
|
|
||
| Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
|
||
| |maintainer-grindtildeath| | ||
|
|
||
| This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/19.0/report_pdf_form>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright 2025 Camptocamp SA | ||
| # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl) | ||
| { | ||
| "name": "Report PDF Form", | ||
| "summary": "Fill custom PDF form reports ", | ||
| "version": "19.0.1.0.0", | ||
| "development_status": "Alpha", | ||
| "category": "Reporting", | ||
| "website": "https://github.com/OCA/reporting-engine", | ||
| "author": "Camptocamp, Odoo Community Association (OCA)", | ||
| "maintainers": ["grindtildeath"], | ||
| "license": "LGPL-3", | ||
| "application": False, | ||
| "installable": True, | ||
| "preloadable": True, | ||
| "depends": [ | ||
| "web", | ||
| ], | ||
| "data": [ | ||
| "security/ir.model.access.csv", | ||
| "views/report_pdf_form.xml", | ||
| ], | ||
| "demo": [ | ||
| "demo/report_pdf_form_demo.xml", | ||
| ], | ||
| } |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <odoo> | ||
| <!-- Demo PDF attachment --> | ||
| <record id="demo_pdf_attachment" model="ir.attachment"> | ||
| <field name="name">demo_form.pdf</field> | ||
| <field name="type">binary</field> | ||
| <field | ||
| name="datas" | ||
| type="base64" | ||
| file="report_pdf_form/demo/form_example.pdf" | ||
| /> | ||
| <field name="mimetype">application/pdf</field> | ||
| </record> | ||
|
|
||
| <!-- Demo report for partner model --> | ||
| <record id="demo_partner_report" model="ir.actions.report"> | ||
| <field name="name">Demo Partner Report</field> | ||
| <field name="model">res.partner</field> | ||
| <field name="report_name">demo_partner_report</field> | ||
| <field name="report_type">qweb-pdf</field> | ||
| <field name="print_report_name">object.name</field> | ||
| </record> | ||
|
|
||
| <!-- Demo PDF form configuration --> | ||
| <record id="demo_pdf_form" model="report.pdf.form"> | ||
| <field name="name">Demo PDF Form</field> | ||
| <field name="report_id" ref="demo_partner_report" /> | ||
| <field name="pdf_attachment_id" ref="demo_pdf_attachment" /> | ||
| <field name="model_id" ref="base.model_res_partner" /> | ||
| <field name="binding_model_id" ref="base.model_res_partner" /> | ||
| <field name="binding_type">report</field> | ||
| </record> | ||
|
|
||
| <!-- Demo field mappings --> | ||
| <record id="demo_field_name" model="report.pdf.form.field"> | ||
| <field name="report_form_id" ref="demo_pdf_form" /> | ||
| <field name="pdf_field_name">partner_name</field> | ||
| <field name="odoo_field_evaluation">dotted_path</field> | ||
| <field name="odoo_field_value">name</field> | ||
| </record> | ||
|
|
||
| <record id="demo_field_email" model="report.pdf.form.field"> | ||
| <field name="report_form_id" ref="demo_pdf_form" /> | ||
| <field name="pdf_field_name">partner_email</field> | ||
| <field name="odoo_field_evaluation">dotted_path</field> | ||
| <field name="odoo_field_value">email</field> | ||
| </record> | ||
|
|
||
| <record id="demo_field_phone" model="report.pdf.form.field"> | ||
| <field name="report_form_id" ref="demo_pdf_form" /> | ||
| <field name="pdf_field_name">partner_phone</field> | ||
| <field name="odoo_field_evaluation">dotted_path</field> | ||
| <field name="odoo_field_value">phone</field> | ||
| </record> | ||
|
|
||
| <!-- Demo field mappings with deeper dotted paths --> | ||
| <record id="demo_field_company_name" model="report.pdf.form.field"> | ||
| <field name="report_form_id" ref="demo_pdf_form" /> | ||
| <field name="pdf_field_name">company_name</field> | ||
| <field name="odoo_field_evaluation">dotted_path</field> | ||
| <field name="odoo_field_value">company_id.name</field> | ||
| </record> | ||
|
|
||
| <record id="demo_field_user_login" model="report.pdf.form.field"> | ||
| <field name="report_form_id" ref="demo_pdf_form" /> | ||
| <field name="pdf_field_name">user_login</field> | ||
| <field name="odoo_field_evaluation">dotted_path</field> | ||
| <field name="odoo_field_value">user_id.login</field> | ||
| </record> | ||
|
|
||
| <record id="demo_field_country_name" model="report.pdf.form.field"> | ||
| <field name="report_form_id" ref="demo_pdf_form" /> | ||
| <field name="pdf_field_name">country_name</field> | ||
| <field name="odoo_field_evaluation">dotted_path</field> | ||
| <field name="odoo_field_value">country_id.name</field> | ||
| </record> | ||
|
|
||
| <!-- Demo variable --> | ||
| <record id="demo_variable_current_date" model="report.pdf.form.variable"> | ||
| <field name="report_form_id" ref="demo_pdf_form" /> | ||
| <field name="name">current_date</field> | ||
| <field name="code">datetime.datetime.now().strftime('%Y-%m-%d')</field> | ||
| </record> | ||
| </odoo> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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..