Skip to content

Commit 4cdff22

Browse files
author
docker-odoo
committed
Merge commit 'refs/pull/412/head' of https://github.com/OCA/account-invoice-reporting into 17.0-dev
2 parents e3efc9e + 044c142 commit 4cdff22

18 files changed

Lines changed: 1226 additions & 0 deletions
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
===================================
2+
Account Invoice Report Printed Flag
3+
===================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:36ea8855d6cf033ec95b02386337f6686795535fb802efb5c5bd167552c2f77b
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Alpha
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoice--reporting-lightgray.png?logo=github
20+
:target: https://github.com/OCA/account-invoice-reporting/tree/17.0/account_invoice_report_printed_flag
21+
:alt: OCA/account-invoice-reporting
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/account-invoice-reporting-17-0/account-invoice-reporting-17-0-account_invoice_report_printed_flag
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-invoice-reporting&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module extends ``account.move`` to support the printed flag
32+
mechanism provided by the ``report_printed_flag`` module.
33+
34+
It adds printed report tracking capabilities to invoices, bills, and
35+
journal entries.
36+
37+
It adds a ``printed`` field and integrates printed tracking features
38+
into the accounting user interface.
39+
40+
Main features:
41+
42+
- Adds ``printed`` field to ``account.move``
43+
- Tracks printed reports using the core module
44+
- Displays printed report names per record (optional field)
45+
- Provides direct access to printed logs
46+
- Adds search filters:
47+
48+
- Printed
49+
- Not Printed
50+
51+
- Adds group by:
52+
53+
- Printed
54+
- Printed Report Names
55+
56+
- Supports multi-company configurations
57+
58+
Printed report names are computed from related printed logs and
59+
displayed as a comma-separated string.
60+
61+
.. IMPORTANT::
62+
This is an alpha version, the data model and design can change at any time without warning.
63+
Only for development or testing purpose, do not use in production.
64+
`More details on development status <https://odoo-community.org/page/development-status>`_
65+
66+
**Table of contents**
67+
68+
.. contents::
69+
:local:
70+
71+
Usage
72+
=====
73+
74+
To use this module:
75+
76+
1. Install this module
77+
78+
2. Configure reports in:
79+
80+
*Settings > Printed Flag > Configurations*
81+
82+
3. Generate an account move report (invoice, bill, or journal entry)
83+
84+
If properly configured:
85+
86+
- The record will be marked as:
87+
88+
printed = True
89+
90+
- Printed logs will be created (if enabled)
91+
92+
- Printed report names will be computed (if enabled)
93+
94+
Known issues / Roadmap
95+
======================
96+
97+
- Improve performance for large volumes of logs
98+
- Extend support for additional reporting mechanisms if required
99+
- Enhance usability of printed logs in accounting views
100+
101+
Bug Tracker
102+
===========
103+
104+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoice-reporting/issues>`_.
105+
In case of trouble, please check there if your issue has already been reported.
106+
If you spotted it first, help us to smash it by providing a detailed and welcomed
107+
`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**>`_.
108+
109+
Do not contact contributors directly about support or help with technical issues.
110+
111+
Credits
112+
=======
113+
114+
Authors
115+
-------
116+
117+
* Binhex Systems Solutions S.L
118+
119+
Contributors
120+
------------
121+
122+
- `Binhex Systems Solutions S.L. <https://www.binhex.cloud>`__:
123+
124+
- Ariel Torres
125+
- Rolando Pérez Rebollo
126+
127+
Maintainers
128+
-----------
129+
130+
This module is maintained by the OCA.
131+
132+
.. image:: https://odoo-community.org/logo.png
133+
:alt: Odoo Community Association
134+
:target: https://odoo-community.org
135+
136+
OCA, or the Odoo Community Association, is a nonprofit organization whose
137+
mission is to support the collaborative development of Odoo features and
138+
promote its widespread use.
139+
140+
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.
141+
142+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "Account Invoice Report Printed Flag",
3+
"summary": "Adds printed flag support to account moves",
4+
"version": "17.0.1.0.0",
5+
"category": "Accounting",
6+
"license": "AGPL-3",
7+
"author": "Binhex Systems Solutions S.L, Odoo Community Association (OCA)",
8+
"website": "https://github.com/OCA/account-invoice-reporting",
9+
"depends": [
10+
"account",
11+
"report_printed_flag",
12+
],
13+
"data": [
14+
"views/account_move_views.xml",
15+
],
16+
"installable": True,
17+
"application": False,
18+
"development_status": "Alpha",
19+
"images": ["static/description/icon.png"],
20+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_invoice_report_printed_flag
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2026-04-01 10:20+0000\n"
10+
"PO-Revision-Date: 2026-04-01 10:20+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: account_invoice_report_printed_flag
19+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_bank_statement_line__printed_report_names
20+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_move__printed_report_names
21+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_payment__printed_report_names
22+
msgid ""
23+
"Comma-separated list of printed report names, computed from related printed "
24+
"logs. Only active if enabled in configuration."
25+
msgstr ""
26+
"Lista de nombres de informes impresos separados por comas, calculada a partir de los registros impresos relacionados."
27+
" Solo se activa si está habilitada en la configuración."
28+
29+
#. module: account_invoice_report_printed_flag
30+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_bank_statement_line__printed
31+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_move__printed
32+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_payment__printed
33+
msgid ""
34+
"Indicates whether at least one configured report has been printed for this "
35+
"record."
36+
msgstr ""
37+
"Indica si se ha impreso al menos un informe configurado para este registro."
38+
39+
#. module: account_invoice_report_printed_flag
40+
#: model:ir.model,name:account_invoice_report_printed_flag.model_account_move
41+
msgid "Journal Entry"
42+
msgstr "Asiento contable"
43+
44+
#. module: account_invoice_report_printed_flag
45+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_in_invoice_tree_printed
46+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_move_tree_printed
47+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_out_invoice_tree_printed
48+
msgid "Logs"
49+
msgstr "Registros"
50+
51+
#. module: account_invoice_report_printed_flag
52+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_account_invoice_search_printed
53+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_move_search_printed
54+
msgid "Not Printed"
55+
msgstr "No impreso"
56+
57+
#. module: account_invoice_report_printed_flag
58+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_bank_statement_line__printed
59+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_move__printed
60+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_payment__printed
61+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_account_invoice_search_printed
62+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_move_search_printed
63+
msgid "Printed"
64+
msgstr "Impreso"
65+
66+
#. module: account_invoice_report_printed_flag
67+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_bank_statement_line__printed_log_ids
68+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_move__printed_log_ids
69+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_payment__printed_log_ids
70+
msgid "Printed Log"
71+
msgstr "Registro de impresión"
72+
73+
#. module: account_invoice_report_printed_flag
74+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_account_invoice_search_printed
75+
#: model_terms:ir.ui.view,arch_db:account_invoice_report_printed_flag.view_move_search_printed
76+
msgid "Printed Report Names"
77+
msgstr "Nombres de informes impresos"
78+
79+
#. module: account_invoice_report_printed_flag
80+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_bank_statement_line__printed_report_names
81+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_move__printed_report_names
82+
#: model:ir.model.fields,field_description:account_invoice_report_printed_flag.field_account_payment__printed_report_names
83+
msgid "Printed Reports Names"
84+
msgstr "Nombres de informes impresos"
85+
86+
#. module: account_invoice_report_printed_flag
87+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_bank_statement_line__printed_log_ids
88+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_move__printed_log_ids
89+
#: model:ir.model.fields,help:account_invoice_report_printed_flag.field_account_payment__printed_log_ids
90+
msgid ""
91+
"Technical relation to printed logs using a generic reference pattern "
92+
"(res_model, res_id). Only logs related to account.move are included."
93+
msgstr ""
94+
"Relación técnica con los registros impresos utilizando un patrón de referencia genérico "
95+
"(res_model, res_id). Solo se incluyen los registros relacionados con account.move."
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import account_move
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from odoo import models
2+
3+
4+
class AccountMove(models.Model):
5+
"""
6+
Extension of ``account.move`` to integrate with the
7+
``report_printed_flag`` infrastructure via the mixin.
8+
9+
This module adds:
10+
- A ``printed`` Boolean field (from mixin)
11+
- A ``printed_log_ids`` One2many relation to print logs (from mixin)
12+
- A ``printed_report_names`` computed Char field (from mixin)
13+
- An ``action_view_printed_logs()`` method (from mixin)
14+
15+
All functionality is provided by ``report.printed.mixin``.
16+
"""
17+
18+
_name = "account.move"
19+
_inherit = ["account.move", "report.printed.mixin"]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Configuration is managed through the ``report_printed_flag`` module.
2+
3+
For ``account.move``:
4+
5+
- Select model: ``account.move``
6+
- Define report rules
7+
- Optionally enable:
8+
- Printed Logs
9+
- Printed Report Names
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [Binhex Systems Solutions S.L.](https://www.binhex.cloud):
2+
- Ariel Torres
3+
- Rolando Pérez Rebollo
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
This module extends ``account.move`` to support the printed flag
2+
mechanism provided by the ``report_printed_flag`` module.
3+
4+
It adds printed report tracking capabilities to invoices,
5+
bills, and journal entries.
6+
7+
It adds a ``printed`` field and integrates printed tracking features
8+
into the accounting user interface.
9+
10+
Main features:
11+
12+
- Adds ``printed`` field to ``account.move``
13+
- Tracks printed reports using the core module
14+
- Displays printed report names per record (optional field)
15+
- Provides direct access to printed logs
16+
- Adds search filters:
17+
- Printed
18+
- Not Printed
19+
- Adds group by:
20+
- Printed
21+
- Printed Report Names
22+
- Supports multi-company configurations
23+
24+
Printed report names are computed from related printed logs and displayed
25+
as a comma-separated string.

0 commit comments

Comments
 (0)