Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 142 additions & 0 deletions account_invoice_report_printed_flag/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
===================================
Account Invoice Report Printed Flag
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:36ea8855d6cf033ec95b02386337f6686795535fb802efb5c5bd167552c2f77b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoice--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoice-reporting/tree/17.0/account_invoice_report_printed_flag
:alt: OCA/account-invoice-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoice-reporting-17-0/account-invoice-reporting-17-0-account_invoice_report_printed_flag
: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/account-invoice-reporting&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends ``account.move`` to support the printed flag
mechanism provided by the ``report_printed_flag`` module.

It adds printed report tracking capabilities to invoices, bills, and
journal entries.

It adds a ``printed`` field and integrates printed tracking features
into the accounting user interface.

Main features:

- Adds ``printed`` field to ``account.move``
- Tracks printed reports using the core module
- Displays printed report names per record (optional field)
- Provides direct access to printed logs
- Adds search filters:

- Printed
- Not Printed

- Adds group by:

- Printed
- Printed Report Names

- Supports multi-company configurations

Printed report names are computed from related printed logs and
displayed as a comma-separated string.

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

Usage
=====

To use this module:

1. Install this module

2. Configure reports in:

*Settings > Printed Flag > Configurations*

3. Generate an account move report (invoice, bill, or journal entry)

If properly configured:

- The record will be marked as:

printed = True

- Printed logs will be created (if enabled)

- Printed report names will be computed (if enabled)

Known issues / Roadmap
======================

- Improve performance for large volumes of logs
- Extend support for additional reporting mechanisms if required
- Enhance usability of printed logs in accounting views

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoice-reporting/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/account-invoice-reporting/issues/new?body=module:%20account_invoice_report_printed_flag%0Aversion:%2017.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
-------

* Binhex Systems Solutions S.L

Contributors
------------

- `Binhex Systems Solutions S.L. <https://www.binhex.cloud>`__:

- Ariel Torres
- Rolando Pérez Rebollo

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.

This module is part of the `OCA/account-invoice-reporting <https://github.com/OCA/account-invoice-reporting/tree/17.0/account_invoice_report_printed_flag>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_invoice_report_printed_flag/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions account_invoice_report_printed_flag/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Account Invoice Report Printed Flag",
"summary": "Adds printed flag support to account moves",
"version": "17.0.1.0.0",
"category": "Accounting",
"license": "AGPL-3",
"author": "Binhex Systems Solutions S.L, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoice-reporting",
"depends": [
"account",
"report_printed_flag",
],
"data": [
"views/account_move_views.xml",
],
"installable": True,
"application": False,
"development_status": "Alpha",
"images": ["static/description/icon.png"],
}
95 changes: 95 additions & 0 deletions account_invoice_report_printed_flag/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_report_printed_flag
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-04-01 10:20+0000\n"
"PO-Revision-Date: 2026-04-01 10:20+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_invoice_report_printed_flag
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_bank_statement_line__printed_report_names
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_move__printed_report_names
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_payment__printed_report_names
msgid ""
"Comma-separated list of printed report names, computed from related printed "
"logs. Only active if enabled in configuration."
msgstr ""
"Lista de nombres de informes impresos separados por comas, calculada a partir de los registros impresos relacionados."
" Solo se activa si está habilitada en la configuración."

#. module: account_invoice_report_printed_flag
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_bank_statement_line__printed
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_move__printed
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_payment__printed
msgid ""
"Indicates whether at least one configured report has been printed for this "
"record."
msgstr ""
"Indica si se ha impreso al menos un informe configurado para este registro."

#. module: account_invoice_report_printed_flag
#: model:ir.model,name:account_invoice_report_printed_flag.model_account_move
msgid "Journal Entry"
msgstr "Asiento contable"

#. module: account_invoice_report_printed_flag
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_in_invoice_tree_printed
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_move_tree_printed
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_out_invoice_tree_printed
msgid "Logs"
msgstr "Registros"

#. module: account_invoice_report_printed_flag
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_account_invoice_search_printed
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_move_search_printed
msgid "Not Printed"
msgstr "No impreso"

#. module: account_invoice_report_printed_flag
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_bank_statement_line__printed
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_move__printed
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_payment__printed
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_account_invoice_search_printed
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_move_search_printed
msgid "Printed"
msgstr "Impreso"

#. module: account_invoice_report_printed_flag
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_bank_statement_line__printed_log_ids
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_move__printed_log_ids
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_payment__printed_log_ids
msgid "Printed Log"
msgstr "Registro de impresión"

#. module: account_invoice_report_printed_flag
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_account_invoice_search_printed
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_move_search_printed
msgid "Printed Report Names"
msgstr "Nombres de informes impresos"

#. module: account_invoice_report_printed_flag
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_bank_statement_line__printed_report_names
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_move__printed_report_names
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_payment__printed_report_names
msgid "Printed Reports Names"
msgstr "Nombres de informes impresos"

#. module: account_invoice_report_printed_flag
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_bank_statement_line__printed_log_ids
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_move__printed_log_ids
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_payment__printed_log_ids
msgid ""
"Technical relation to printed logs using a generic reference pattern "
"(res_model, res_id). Only logs related to account.move are included."
msgstr ""
"Relación técnica con los registros impresos utilizando un patrón de referencia genérico "
"(res_model, res_id). Solo se incluyen los registros relacionados con account.move."
1 change: 1 addition & 0 deletions account_invoice_report_printed_flag/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move
19 changes: 19 additions & 0 deletions account_invoice_report_printed_flag/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from odoo import models


class AccountMove(models.Model):
"""
Extension of ``account.move`` to integrate with the
``report_printed_flag`` infrastructure via the mixin.

This module adds:
- A ``printed`` Boolean field (from mixin)
- A ``printed_log_ids`` One2many relation to print logs (from mixin)
- A ``printed_report_names`` computed Char field (from mixin)
- An ``action_view_printed_logs()`` method (from mixin)

All functionality is provided by ``report.printed.mixin``.
"""

_name = "account.move"
_inherit = ["account.move", "report.printed.mixin"]
3 changes: 3 additions & 0 deletions account_invoice_report_printed_flag/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
9 changes: 9 additions & 0 deletions account_invoice_report_printed_flag/readme/CONFIGURATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Configuration is managed through the ``report_printed_flag`` module.

For ``account.move``:

- Select model: ``account.move``
- Define report rules
- Optionally enable:
- Printed Logs
- Printed Report Names
3 changes: 3 additions & 0 deletions account_invoice_report_printed_flag/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [Binhex Systems Solutions S.L.](https://www.binhex.cloud):
- Ariel Torres
- Rolando Pérez Rebollo
25 changes: 25 additions & 0 deletions account_invoice_report_printed_flag/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
This module extends ``account.move`` to support the printed flag
mechanism provided by the ``report_printed_flag`` module.

It adds printed report tracking capabilities to invoices,
bills, and journal entries.

It adds a ``printed`` field and integrates printed tracking features
into the accounting user interface.

Main features:

- Adds ``printed`` field to ``account.move``
- Tracks printed reports using the core module
- Displays printed report names per record (optional field)
- Provides direct access to printed logs
- Adds search filters:
- Printed
- Not Printed
- Adds group by:
- Printed
- Printed Report Names
- Supports multi-company configurations

Printed report names are computed from related printed logs and displayed
as a comma-separated string.
3 changes: 3 additions & 0 deletions account_invoice_report_printed_flag/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Improve performance for large volumes of logs
* Extend support for additional reporting mechanisms if required
* Enhance usability of printed logs in accounting views
17 changes: 17 additions & 0 deletions account_invoice_report_printed_flag/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
To use this module:

1. Install this module
2. Configure reports in:

*Settings > Printed Flag > Configurations*

3. Generate an account move report (invoice, bill, or journal entry)

If properly configured:

- The record will be marked as:

printed = True

- Printed logs will be created (if enabled)
- Printed report names will be computed (if enabled)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading