Skip to main content
Odoo Community Association

Report Printed Flag

Alpha License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runboat

This module provides a generic and extensible configuration layer to mark records as printed when specific PDF reports are generated.

Main features:

  • Reusable Mixin (report.printed.mixin) that any model can inherit to gain:

    • A printed Boolean field

    • A printed_log_ids One2many relation to audit logs

    • A printed_report_names computed field with printed report names

    • An action_view_printed_logs() method

  • Generic configuration per company and model

  • Per-report configuration using rules

  • Optional domain conditions per report

  • Automatic printed flag update

  • Optional logging of report executions

  • Optional computation of printed report names

  • Full multi-company support with isolated configurations

  • User interface for browsing printed report logs

Extension modules simply inherit the mixin:

class AccountMove(models.Model):
    _name = 'account.move'
    _inherit = ['account.move', 'report.printed.mixin']

All printed flag functionality is inherited automatically.

Limitations:

  • Only applies to QWeb PDF reports (qweb-pdf)

  • Extension modules must inherit report.printed.mixin to gain printed field support

  • Domain expressions must be valid Python domains

Table of contents

Usage

For End Users

  1. Install report_printed_flag module

  2. Install extension modules that support printed flags (e.g., report_printed_flag_account)

  3. Go to Settings > Reporting > Printed Flag > Configurations

  4. Create a configuration for your model (Company + Model)

  5. Add report rules (select report + optional domain condition)

  6. Generate a configured report from a document (e.g., print an invoice)

Result:

  • The printed field is automatically set to True

  • A log entry is created (if enabled in configuration)

  • Printed report names are computed (if enabled in configuration)

Access logs via:

Settings > Reporting > Printed Flag > Logs

For Module Developers

To add printed flag support to a custom model:

  1. Create your model inheriting from report.printed.mixin:

    class MyModel(models.Model): _name = ‘my.model’ _inherit = [‘my.model’, ‘report.printed.mixin’]

  2. Create QWeb PDF reports for your model (standard Odoo process)

  3. Instruct users to configure which reports trigger the printed flag via the UI

That’s it! The mixin provides all field and method implementations automatically.

Optional: Add UI Elements

You may optionally add buttons to your views to open the logs:

<button name="action_view_printed_logs"
        type="object"
        string="View Printed Logs"
        icon="fa-print"
        invisible="not printed_report_names"/>

Known issues / Roadmap

  • Provide official extension modules (stock, account)

  • Add support for additional report types (HTML, XLSX)

  • Optimize performance for high-volume batch printing

  • Improve handling of large datasets

Bug Tracker

Bugs are tracked on GitHub 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.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Binhex

Contributors

  • Binhex:

    • Ariel Torres

    • Rolando Pérez Rebollo

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

This module is part of the OCA/reporting-engine project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo-addon-report-printed-flag 17.0.1.0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-report-printed-flag 17.0.1.0.1.1
File Interpreter ABI Platform Actions
odoo_addon_report_printed_flag-17.0.1.0.1.1-py3-none-any.whl Python 3 none any Details for odoo_addon_report_printed_flag-17.0.1.0.1.1-py3-none-any.whl

Release files / odoo_addon_report_printed_flag-17.0.1.0.1.1-py3-none-any.whl

Download URL odoo_addon_report_printed_flag-17.0.1.0.1.1-py3-none-any.whl
Size 47.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c286bcbd239475d7d5f114df4fbcd5373fee6bbfee7483705b10ca0ffd11a58
BLAKE2b-256 checksum
How to use checksums
10a5fb81f5c2a5299498b549f91ccce4b01f0a630fa597214bfbf0c115cbfead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-report-printed-flag 17.0.1.0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page