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 Systems Solutions S.L

Contributors

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.0.3

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.0.3
File Interpreter ABI Platform
odoo_addon_report_printed_flag-17.0.1.0.0.3-py3-none-any.whl Python 3 none any Details

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

Download URL odoo_addon_report_printed_flag-17.0.1.0.0.3-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6e2cb052c967a81f4fb3d4ed2928e892f775203e0a73197a216b1f240a7a9b4
BLAKE2b-256 checksum
How to use checksums
449e4fa8ea7d4414fc5c8e516bf97c046bc5d6b93677f7e7838bf5cc31a4f553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

17.0.1.0.0.3 This release

1 release file

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