Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
70eadd1
base_calendar passed away
Nov 12, 2014
a094114
[FIX] Bug #19 avoid crash when using 'raw' option
Dec 28, 2014
76293e4
Do no longer returns a PDF when a report is printed
Jan 21, 2015
b068ac2
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
52bfd16
Compatibility fix for report with custom parser
nbessi Jan 30, 2015
f987632
The alteration of the context has no effect
Jan 30, 2015
d41c195
Improve bloated condition test
nbessi Feb 6, 2015
dc160ad
[FIX] base_report_to_printer: make get_pdf callable from 8.0 api
anthony-muschang May 19, 2015
c422ae5
[FIX] test if the module is installed before monkey patching
vrenaville Jun 15, 2015
c67bc26
[PEP8]
yvaucher Aug 18, 2015
f73e7a4
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
eb9603c
pass context to printer to use it for example in print_options()
intero-chz Oct 25, 2015
5d83c75
Add support for multiple copies
alexis-via Nov 2, 2015
62e80fd
[IMP] Soft fail on missing cups import
Dec 10, 2015
f8fffde
[MIG] base_report_to_printer: Upgrade to v9
lasley Jul 4, 2016
970dbbf
Fix placeholder for repo in readme.rst
yvaucher Oct 5, 2016
043d6ec
[10.0][MIG] base_report_to_printer (#68)
Apr 5, 2017
5958ed2
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
30fac28
[10] FIX format parameter (#84)
angelmoya Apr 11, 2017
b6f94da
Update README.rst
blutecsolutions May 1, 2017
0b3aba3
[FIX] base_report_to_printer: A button method should be @api.multi
Jun 23, 2017
d596c7a
[FIX] Minor bugfixes
gdgellatly Aug 9, 2017
c5d3be0
[MIG] base_report_to_printer: Migrate to v11.0
Oct 3, 2017
a1cb179
[WIP] Commit before rebase on latest #109 for user and view updates
gdgellatly Oct 5, 2017
e54debf
FIX view
fmdl Jan 14, 2018
985e63d
[FIX] base_report_to_printer: Stateless tests (#123)
yajo Jan 19, 2018
1231c42
Bump base_report_to_printer version to 11.0.2.1.0
yvaucher Feb 2, 2018
f7c1353
[FIX] Allow to generate printing options without a report
Feb 13, 2018
8498c79
[FIX] Permission issue
May 7, 2018
63e04c8
[FIX] missing super declaration
etobella Jun 20, 2018
066fc13
[FIX][base_report_to_printer] - behaviour to print the report succesf…
Jun 22, 2018
95b2997
[FIX] Group inheritance
max3903 Jun 28, 2018
bbfb7cf
Translated using Weblate (Spanish)
etobella Nov 13, 2018
871fb7d
[WIP] Migrate base_report_to_printer to V12
gdgellatly Jan 30, 2019
394770a
[MIG] base_report_to_printer: Migration to 13.0
schout-it Sep 30, 2019
bff1732
[FIX] .travis.yml: Update definition
pedrobaeza Oct 1, 2019
9a7a1c1
Update base_report_to_printer/__manifest__.py
schout-it Oct 18, 2019
e53f58e
Added job state 'cups-filter-crashed'.
igh-fp Aug 18, 2020
7be6d14
Added translation using Weblate (Spanish (Argentina))
ibuioli Oct 18, 2020
4f0946e
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 18, 2020
5013fce
[IMP] base_report_to_printer: archive printers
Oct 6, 2020
e6e6871
[IMP] base_report_to_printer: black, isort, prettier
CarlosRoca13 Jan 12, 2021
15d66ce
[MIG] base_report_to_printer: Migration to v14
Jan 12, 2021
18581e1
[FIX] base_report_to_printer: Fixed tests
CarlosRoca13 Jan 12, 2021
bf51647
[UPD] Update base_report_to_printer.pot
oca-travis Jan 13, 2021
e752e7b
[UPD] README.rst
OCA-git-bot Jan 13, 2021
03b08ec
[IMP] base_report_to_printer: Avoid writing on printing printers/jobs…
Feb 4, 2021
1748dd0
[IMP] 14.0 base_report_to_printer: improve job title
gurneyalex Nov 9, 2021
8b87227
[FIX] base_report_to_printer: error printing in external network.
LoisRForgeFlow Nov 16, 2021
cf26fe4
[UPD] README.rst
OCA-git-bot Dec 2, 2021
b11494c
base_report_to_printer 14.0.1.1.0
OCA-git-bot Dec 2, 2021
719b726
[14.0][IMP] base_report_to_printer: Add test page printing
rousseldenis Dec 9, 2021
b08d3dd
[14.0][IMP] base_report_to_printer: Remove deprecated Warning
rousseldenis Dec 9, 2021
a888532
base_report_to_printer 14.0.1.1.1
OCA-git-bot Dec 11, 2021
d6da1bd
[14.0][IMP] base_report_to_printer: Add Raw test page printing
rousseldenis Dec 20, 2021
81c9753
Added translation using Weblate (Swedish)
simonstromb Jan 10, 2022
88edb5b
Translated using Weblate (Swedish)
simonstromb Jan 10, 2022
a1172f2
[UPD] Update base_report_to_printer.pot
oca-travis Feb 17, 2022
26a5284
base_report_to_printer 14.0.1.2.0
OCA-git-bot Feb 17, 2022
28deae7
Update translation files
oca-transbot Feb 17, 2022
b1ec430
[IMP] base_report_to_printer: allow connect to protected server
fmdl Dec 10, 2021
86311ca
[UPD] Update base_report_to_printer.pot
oca-travis Feb 22, 2022
1809fd3
base_report_to_printer 14.0.2.0.0
OCA-git-bot Feb 22, 2022
922e4ca
Update translation files
oca-transbot Feb 22, 2022
9b833cb
[IMP] base_report_to_printer: black, isort, prettier
BT-dmontull Mar 3, 2022
9b559a1
[15.0][MIG] base_report_to_printer: Migration to 15.0
BT-dmontull Mar 4, 2022
a59ab27
[MIG] base_report_to_printer: Finish migration to 15.0
matiasperalta1 Aug 25, 2022
4ac4bcb
[UPD] Update base_report_to_printer.pot
Oct 25, 2022
16e6623
[UPD] README.rst
OCA-git-bot Oct 25, 2022
3fb772c
Update translation files
weblate Oct 25, 2022
7490401
[MIG] base_report_to_printer: Migration to 16.0
glitchov Dec 7, 2022
b8dc10d
[UPD] Update base_report_to_printer.pot
Dec 14, 2022
0771a91
[UPD] README.rst
OCA-git-bot Dec 14, 2022
39b6231
Update translation files
weblate Dec 14, 2022
096f8a2
[14.0][IMP] base_report_to_printer: Add Text render document to printer
rousseldenis Dec 20, 2021
92ad27d
[14.0][FIX] base_report_to_printer: Manage text print_document()
rousseldenis Dec 29, 2021
fe358f9
[14.0][IMP] base_report_to_printer: Add tests for text documents
rousseldenis Dec 29, 2021
d484d32
[ADD] base_report_to_printer: Print attachments wizard
grindtildeath Apr 27, 2020
a0bb2e3
[MIG] base_report_to_printer: Print attachments wizard
sebalix Aug 6, 2020
1b55512
fix(#259): handle case of print attachment wizard
gurneyalex Mar 9, 2022
4aa0e89
[ADD] access right for wizrard print attachment and fix trans format
Jan 21, 2022
26d12c7
FIX bad field used for labeling at print
Jul 12, 2022
b6ac41a
base_report_to_printer: fix translation-positional-used
sebalix Dec 15, 2022
3f1c639
[UPD] Update base_report_to_printer.pot
Dec 21, 2022
0fee5ae
[UPD] README.rst
OCA-git-bot Dec 21, 2022
76ceb79
base_report_to_printer 16.0.1.1.0
OCA-git-bot Dec 21, 2022
9a0e560
Update translation files
weblate Dec 21, 2022
b3c3965
[16.0][FIX] base_report_to_printer: Expected singleton
Mar 3, 2023
8377791
base_report_to_printer 16.0.1.1.1
OCA-git-bot Mar 3, 2023
4bf56f7
base_report_to_printer: fix views
alexis-via Mar 17, 2023
28a859c
base_report_to_printer 16.0.1.1.2
OCA-git-bot Apr 20, 2023
d0f5c3c
Translated using Weblate (Italian)
francesco-ooops Jun 22, 2023
ee218ea
Translated using Weblate (Italian)
francesco-ooops Jul 12, 2023
a6c4bc7
Translated using Weblate (Italian)
mymage Jul 13, 2023
8b882c7
Translated using Weblate (Spanish)
Ivorra78 Jul 23, 2023
319fa99
Fix for unexpected 'nombre' on base_report_to_printer/i18n/es.po
micheledic Jul 27, 2023
a3657eb
base_report_to_printer 16.0.1.1.3
OCA-git-bot Jul 27, 2023
246f37a
[IMP] base_report_to_printer: Add neutralization queries
micheledic Jul 28, 2023
54da242
base_report_to_printer 16.0.1.1.4
OCA-git-bot Jul 28, 2023
8dcb5a6
[UPD] README.rst
OCA-git-bot Sep 3, 2023
30a6a65
Translated using Weblate (French)
Nov 3, 2023
d248267
[FIX] base_report_to_printer: fix encoding
jbaudoux Dec 6, 2023
e31bc26
[BOT] post-merge updates
OCA-git-bot Dec 6, 2023
a9858e1
Translated using Weblate (Italian)
mymage Jan 15, 2024
2ed1689
Translated using Weblate (Italian)
mymage Jan 15, 2024
b213cf2
Translated using Weblate (Italian)
mymage Jan 17, 2024
e753d99
[IMP] base_report_to_printer: pre-commit auto fixes
john-herholz-dt Mar 8, 2024
6c0a73f
[MIG] base_report_to_printer: Migration to 17.0
john-herholz-dt Mar 8, 2024
028704a
[UPD] Update base_report_to_printer.pot
Mar 8, 2024
919c508
[BOT] post-merge updates
OCA-git-bot Mar 8, 2024
3883a4c
Update translation files
weblate Mar 8, 2024
ddd6044
[FIX] line too long
sbidoul May 1, 2024
78c2247
[BOT] post-merge updates
OCA-git-bot May 1, 2024
c0b29fd
Translated using Weblate (Italian)
mymage May 23, 2024
534e3f6
Translated using Weblate (Italian)
mymage Jun 6, 2024
fab00b7
Translated using Weblate (Swedish)
jakobkrabbe Jun 12, 2024
6fa7513
Translated using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha Jun 13, 2024
3c2f792
Translated using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha Jun 14, 2024
add3139
[14.0][FIX] base_report_to_printer: Don't use safe_eval as module
rousseldenis Dec 20, 2021
4b06895
[FIX] base_report_to_printer: access error and wrong translated terms
trisdoan Oct 9, 2024
c9be416
base_report_to_printer: fix string
alexis-via Nov 3, 2023
1b3c928
[IMP] base_report_to_printer: out of connection fallback to client
chienandalu Jan 31, 2024
9915367
[FIX] base_report_to_printer: update printers wizard
chienandalu Sep 20, 2023
b4b7235
[IMP] base_report_to_printer: Add printer option to launch reports in…
sergio-teruel Oct 26, 2024
481e4a9
[IMP] base_report_to_printer: exceptions notifications
chienandalu Nov 11, 2024
e7bf58f
[IMP] base_report_to_printer: pre-commit auto fixes
trisdoan Nov 19, 2024
c7f4418
[MIG] base_report_to_printer: Migration to 18.0
trisdoan Oct 14, 2024
aab8b30
[UPD] Update base_report_to_printer.pot
Jan 20, 2025
0ae4d39
[BOT] post-merge updates
OCA-git-bot Jan 20, 2025
59d85a5
Update translation files
weblate Jan 20, 2025
5972c61
Translated using Weblate (Italian)
mymage Jan 20, 2025
01f839a
[FIX] base_report_to_printer: js warning sort-imports
vvrossem Jan 29, 2025
461610d
[REF] base_report_to_printer: cosmetic
florentx Aug 21, 2025
95853c4
[BOT] post-merge updates
OCA-git-bot Aug 25, 2025
6c9bba4
[FIX] report-print-send: messageIsHtml
david-s73 Sep 9, 2025
7e1953f
[BOT] post-merge updates
OCA-git-bot Sep 9, 2025
a27fced
[IMP] base_report_to_printer: Add a hook to get default printer for user
rousseldenis Jul 11, 2025
2145bdd
FIX] base_report_to_printer: return a close action when the option is…
carlos-lopez-tecnativa Oct 31, 2025
f43eb0e
[BOT] post-merge updates
OCA-git-bot Nov 3, 2025
ea1855e
[FIX] base_report_to_printer: prevent error when trying to download t…
carlos-lopez-tecnativa Oct 31, 2025
219f7fd
[BOT] post-merge updates
OCA-git-bot Nov 7, 2025
2776162
[BOT] post-merge updates
OCA-git-bot Nov 7, 2025
8f1d1bf
[IMP] base_report_to_printer: pre-commit auto fixes
miquelalzanillas Dec 17, 2025
a993927
[MIG] base_report_to_printer: Migration to 19.0
miquelalzanillas Dec 17, 2025
9cef954
[REF] Extract CUPS support into new module in order to convert base a…
miquelalzanillas Dec 19, 2025
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
290 changes: 290 additions & 0 deletions base_report_to_printer/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=================
Report to printer
=================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-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%2Freport--print--send-lightgray.png?logo=github
:target: https://github.com/OCA/report-print-send/tree/19.0/base_report_to_printer
:alt: OCA/report-print-send
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/report-print-send-19-0/report-print-send-19-0-base_report_to_printer
: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/report-print-send&target_branch=19.0
:alt: Try me on Runboat

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

This module provides the core framework to send Odoo reports directly to
printers. It defines the base models, configuration options and printing
workflow, without depending on a specific printing protocol.

The actual connection with printers is delegated to extension modules
(e.g. base_report_to_printer_cups), which implement support for a given
printing backend.

Key features:

Flexible report output behavior:

Send to Client (default): generates a downloadable PDF.

Send to Printer: sends the report directly to a configured printer (via
backend module).

Support for user-level, report-level, and combined user/report printing
rules.

Extensible design: new modules can add support for additional printing
systems or protocols.

This modular approach allows administrators to configure printing
globally, per user, per report, or per user/report combination, while
keeping the printing backend independent and replaceable.

**Table of contents**

.. contents::
:local:

Installation
============

To install this module, you need to:

1. Install PyCups - https://pypi.python.org/pypi/pycups

.. code:: bash

sudo apt-get install cups
sudo apt-get install libcups2-dev
sudo apt-get install python3-dev
sudo pip install pycups

Configuration
=============

Configuration Guide

To configure and start using the Base Report to Printer module, follow
these steps:

1. User Access Rights

Go to Settings → Users & Companies → Users.

Open the user form and in the Access Rights tab, enable:

Printing / Print User → grants access to the printing menu and
user-specific printing preferences.

2. Global Printing Settings

Navigate to Settings → Technical → Printing → Printing Settings.

Define the default printing behavior for reports:

Send to Client (default): generates a downloadable PDF.

Send to Printer: sends the report directly to a configured printer
(requires a backend module such as base_report_to_printer_cups).

3. User Preferences

Each user can configure their own printing behavior:

Go to Preferences (top-right menu, click on your name).

In the Printing section, choose:

Default action (Send to Client / Send to Printer).

Preferred printer (if a backend module is installed and printers are
detected).

4. Report-Specific Configuration

Go to Settings → Technical → Reports → Reports.

For each report, you can define:

Default printing action.

Default printer (if available).

These settings can be overridden at the user level.

5. Per User & Report Combination

Navigate to Settings → Technical → Printing → Report Configurations.

Here you can assign specific rules combining:

A user.

A report.

A printing action (Send to Client / Send to Printer).

A printer and tray (if supported by the backend).

6. Installing a Backend (e.g., CUPS)

The base module does not include any printing backend. To connect with
actual printers you must install an extension module, such as:

base_report_to_printer_cups → adds support for CUPS printers, trays, and
job management.

Once installed, printers from the backend will be available in the
configuration menus above.

Usage
=====

Usage
=====

Guidelines for use:

- To use a specific printing backend (e.g. CUPS), make sure the
corresponding module (such as ``base_report_to_printer_cups``) is
installed and configured.
- To print a report on a specific printer or tray, you can configure
defaults in *Settings > Printing > Reports*.
- To define user-specific behaviour, go to *Settings > Printing >
Reports* and configure *Specific actions per user*.
- Each user can also select a default action, printer or tray in their
*Preferences*.
- When no tray is configured for a report or a user, the default tray
defined by the printing backend (e.g. the CUPS server) will be used.

Notes
-----

- This module (``base_report_to_printer``) only provides the **base
framework**.
- To connect with a real print system, you must install an additional
backend module (e.g. ``base_report_to_printer_cups`` for CUPS).
- Other backend modules can be developed to support different print
protocols or environments.

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

- With threaded printing there's no download fallback when the issue
isn't detected by the CUPS Odoo backend. To able to do it, we would
need to notify the bus or use web_notify for it.

Changelog
=========

19.0.1.0.0 (2025-12-18)
-----------------------

- [REF] Extracted all CUPS-specific functionality into a dedicated
module: ``base_report_to_printer_cups``.
- [ADD] Introduced a base abstraction layer for report-to-printer, to
allow adding new backends (protocols) without modifying the core
module.
- [IMP] Improved configuration instructions (global, per-user,
per-report, and per user+report).
- [CLEAN] Updated documentation and module description to reflect new
architecture.
-

13.0.1.0.0 (2019-09-30)
-----------------------

- [RELEASE] Port from V12.

12.0.1.0.0 (2018-02-04)
-----------------------

- [RELEASE] Port from V11.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/report-print-send/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/report-print-send/issues/new?body=module:%20base_report_to_printer%0Aversion:%2019.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
-------

* Agile Business Group & Domsense
* Pegueroles SCP
* NaN
* LasLabs
* Camptocamp
* Open for Small Business Ltd

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

- Ferran Pegueroles <ferran@pegueroles.com>
- Albert Cervera i Areny <albert@nan-tic.com>
- Davide Corio <davide.corio@agilebg.com>
- Lorenzo Battistini <lorenzo.battistini@agilebg.com>
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
- Lionel Sausin <ls@numerigraphe.com>
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
- Dave Lasley <dave@laslabs.com>
- Sylvain Garancher <sylvain.garancher@syleam.fr>
- Jairo Llopis <jairo.llopis@tecnativa.com>
- Graeme Gellatly <graeme@o4sb.com>
- Rod Schouteden <rod@schout-it.be>
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
- Matias Peralta <mnp@adhoc.com.ar>
- Hughes Damry <hughes.damry@acsone.eu>
- Akim Juillerat <akim.juillerat@camptocamp.com>
- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
- Tris Doan <tridm@trobz.com>
- Sergij Pfaifer <s.pfaifer@deinetuer.de>
- Miquel Alzanillas <miquel.alzanillas@nagarro.com>

Other credits
-------------



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/report-print-send <https://github.com/OCA/report-print-send/tree/19.0/base_report_to_printer>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
9 changes: 9 additions & 0 deletions base_report_to_printer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2007 Ferran Pegueroles <ferran@pegueroles.com>
# Copyright (c) 2009 Albert Cervera i Areny <albert@nan-tic.com>
# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
# Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizards
36 changes: 36 additions & 0 deletions base_report_to_printer/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright (c) 2007 Ferran Pegueroles <ferran@pegueroles.com>
# Copyright (c) 2009 Albert Cervera i Areny <albert@nan-tic.com>
# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
# Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Report to printer",
"version": "19.0.1.0.0",
"category": "Generic Modules/Base",
"author": "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
" LasLabs, Camptocamp, Odoo Community Association (OCA),"
" Open for Small Business Ltd",
"website": "https://github.com/OCA/report-print-send",
"license": "AGPL-3",
"depends": ["web"],
"data": [
"data/printing_data.xml",
"security/security.xml",
"security/ir.model.access.csv",
"views/ir_actions_report.xml",
"views/printing_job.xml",
"views/printing_printer.xml",
"views/printing_report.xml",
"views/res_users.xml",
"wizards/print_attachment_report.xml",
],
"assets": {
"web.assets_backend": [
"/base_report_to_printer/static/src/js/qweb_action_manager.esm.js",
],
},
"installable": True,
"application": False,
}
3 changes: 3 additions & 0 deletions base_report_to_printer/data/neutralize.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
update printing_printer set active=false;
update printing_report_xml_action set active=false;
update ir_act_report_xml set printing_printer_id=null;
17 changes: 17 additions & 0 deletions base_report_to_printer/data/printing_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" ?>
<odoo noupdate="1">
<!-- printing.action -->
<record model="printing.action" id="printing_action_1">
<field name="name">Send to Printer</field>
<field name="action_type">server</field>
</record>
<record model="printing.action" id="printing_action_2">
<field name="name">Send to Client</field>
<field name="action_type">client</field>
</record>
<function
model="ir.default"
name="set"
eval="('ir.actions.report', 'property_printing_action_id', obj().env.ref('base_report_to_printer.printing_action_2').id)"
/>
</odoo>
Loading