Dynamic Report: PDF Drawing attachment (background) & Properties (overwritten)
by CLuedoo https://www.cluedoo.com/shop/licclusetsys0012-dynamic-report-pdf-drawing-attachment-background-properties-overwritten-5303$ 150.00
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1967 |
| Technical Name |
fal_drawing_engine |
| License | OPL-1 |
| Website | https://www.cluedoo.com/shop/licclusetsys0012-dynamic-report-pdf-drawing-attachment-background-properties-overwritten-5303 |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1967 |
| Technical Name |
fal_drawing_engine |
| License | OPL-1 |
| Website | https://www.cluedoo.com/shop/licclusetsys0012-dynamic-report-pdf-drawing-attachment-background-properties-overwritten-5303 |
| Versions | 18.0 19.0 |
ODOO'S FUNCTION
In Odoo, drawing items in reports requires users to modify report templates using XML code or to use the limited drag-and-drop features in the report designer. This process is rigid, as field placements are static and require technical knowledge to adjust.
CLUEDOO'S FUNCTION
CLuedoo Drawing Template feature allows users to customize the layout and appearance of Odoo reports in a simple and flexible way, without technical development.
1️⃣ Flexible Layout Management: Users can create a drawing template and modify report layouts directly from the interface. Fields can be easily moved, resized, or rearranged.
2️⃣ Real-Time Adjustments: Any change made to the template is immediately visible in the report preview. This allows users to quickly test different layouts and make adjustments in real time, reducing trial-and-error and configuration delays.
3️⃣ Reusable Across Reports: Once finalized, a drawing template can be attached to any existing Odoo (ODS) report. This enables consistent formatting and design across multiple documents without needing to recreate layouts each time.
|
1. Go to Settings > Users > Activate the Drawing User access right for a user
|
|
|
2. On the Drawing app, create a Drawing Template . We have two options to edit the report:
|
|
VALUE1. On the Value field, we can add text to be placed on the report. Set the positions, font size, font color, rotate, etc., There are 2 types:
|
|
|
2. Click Preview to see the placement of the value on the report. |
|
|
|
Text
Barcode
|
PYTHON CODECheck Use Python Code and write the Python code to show the field on the report. |
|
|
Preview of the report. |
|
|
IMAGE In v18, we have an option to add image to the drawing.
With using the python code value = res_id.signature, we can now add the image of signature to the drawing when signing through the portal.
|
|
ATTACH TO ODOO REPORTSWe can apply the drawing template to a report. e.g., BoM Overview Note: Enable the Print Only Drawing if you do not want to use the ODS report but the drawing template instead. |
|
|
When printing the report, the attachment of the drawing template will also be added to the PDF report. |
|
|
Notes:
From v19, a new Company field has been added to the drawing template:
|
|
|
|
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module