mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[12.0][MIG] remote_report_to_printer
This commit is contained in:
1
oca_dependencies.txt
Normal file
1
oca_dependencies.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
server-tools
|
||||||
@@ -1,10 +1,29 @@
|
|||||||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
============================
|
||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
Report to printer on remotes
|
||||||
:alt: License: AGPL-3
|
============================
|
||||||
|
|
||||||
=================
|
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
Report To Printer
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
=================
|
!! changes will be overwritten. !!
|
||||||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
|
.. |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/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%2Freport--print--send-lightgray.png?logo=github
|
||||||
|
:target: https://github.com/OCA/report-print-send/tree/12.0/remote_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-12-0/report-print-send-12-0-remote_report_to_printer
|
||||||
|
:alt: Translate me on Weblate
|
||||||
|
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||||
|
:target: https://runbot.odoo-community.org/runbot/144/12.0
|
||||||
|
:alt: Try me on Runbot
|
||||||
|
|
||||||
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
|
|
||||||
This module allows users to send reports to a printer using remote's configuration.
|
This module allows users to send reports to a printer using remote's configuration.
|
||||||
|
|
||||||
@@ -19,49 +38,52 @@ It adds an optional behaviour on reports to send it directly to a printer.
|
|||||||
|
|
||||||
Also, this option can be selected as a user default option for printer.
|
Also, this option can be selected as a user default option for printer.
|
||||||
|
|
||||||
|
**Table of contents**
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
:local:
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
=====
|
||||||
|
|
||||||
* In *Settings > Remotes* configure the remotes printers by usage
|
* In *Settings > Remotes* configure the remotes printers by usage
|
||||||
|
|
||||||
|
|
||||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
|
||||||
:alt: Try me on Runbot
|
|
||||||
:target: https://runbot.odoo-community.org/runbot/144/11.0
|
|
||||||
|
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|
||||||
Bugs are tracked on `GitHub Issues
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/report-print-send/issues>`_.
|
||||||
<https://github.com/OCA/report-print-send/issues>`_. In case of trouble, please
|
In case of trouble, please check there if your issue has already been reported.
|
||||||
check there if your issue has already been reported. If you spotted it first,
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
help us smashing it by providing a detailed and welcomed feedback.
|
`feedback <https://github.com/OCA/report-print-send/issues/new?body=module:%20remote_report_to_printer%0Aversion:%2012.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
|
Credits
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Images
|
Authors
|
||||||
------
|
~~~~~~~
|
||||||
|
|
||||||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
|
* Creu Blanca
|
||||||
|
|
||||||
Contributors
|
Contributors
|
||||||
------------
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
* Enric Tobella <etobella@creublanca.es>
|
* Enric Tobella <etobella@creublanca.es>
|
||||||
|
|
||||||
Maintainer
|
Maintainers
|
||||||
----------
|
~~~~~~~~~~~
|
||||||
|
|
||||||
|
This module is maintained by the OCA.
|
||||||
|
|
||||||
.. image:: https://odoo-community.org/logo.png
|
.. image:: https://odoo-community.org/logo.png
|
||||||
:alt: Odoo Community Association
|
:alt: Odoo Community Association
|
||||||
:target: https://odoo-community.org
|
:target: https://odoo-community.org
|
||||||
|
|
||||||
This module is maintained by the OCA.
|
|
||||||
|
|
||||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.
|
promote its widespread use.
|
||||||
|
|
||||||
To contribute to this module, please visit https://odoo-community.org.
|
This module is part of the `OCA/report-print-send <https://github.com/OCA/report-print-send/tree/12.0/remote_report_to_printer>`_ project on GitHub.
|
||||||
|
|
||||||
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': "Report to printer on remotes",
|
'name': "Report to printer on remotes",
|
||||||
'version': '11.0.2.1.1',
|
'version': '12.0.2.1.1',
|
||||||
'category': 'Generic Modules/Base',
|
'category': 'Generic Modules/Base',
|
||||||
'author': "Creu Blanca, Odoo Community Association (OCA)",
|
'author': "Creu Blanca, Odoo Community Association (OCA)",
|
||||||
'website': 'http://www.agilebg.com',
|
'website': 'http://www.github.com/OCA/report-print-send',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
"depends": ['base_remote', 'base_report_to_printer'],
|
"depends": ['base_remote', 'base_report_to_printer'],
|
||||||
'data': [
|
'data': [
|
||||||
@@ -16,5 +16,4 @@
|
|||||||
'views/res_remote_printer_views.xml',
|
'views/res_remote_printer_views.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'application': True,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,4 +6,8 @@
|
|||||||
<field name="action_type">remote_default</field>
|
<field name="action_type">remote_default</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<record model="printing.action" id="printing_action_3">
|
||||||
|
<field name="name">Use User Defaults</field>
|
||||||
|
<field name="action_type">user_default</field>
|
||||||
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ from odoo.exceptions import ValidationError
|
|||||||
|
|
||||||
class ResRemotePrinter(models.Model):
|
class ResRemotePrinter(models.Model):
|
||||||
_name = 'res.remote.printer'
|
_name = 'res.remote.printer'
|
||||||
|
_description = 'Remote Printer'
|
||||||
|
|
||||||
remote_id = fields.Many2one(
|
remote_id = fields.Many2one(
|
||||||
'res.remote',
|
'res.remote',
|
||||||
|
|||||||
1
remote_report_to_printer/readme/CONTRIBUTORS.rst
Normal file
1
remote_report_to_printer/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* Enric Tobella <etobella@creublanca.es>
|
||||||
12
remote_report_to_printer/readme/DESCRIPTION.rst
Normal file
12
remote_report_to_printer/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
This module allows users to send reports to a printer using remote's configuration.
|
||||||
|
|
||||||
|
A *remote* is an external entity that access odoo. For example, computers, mobiles,
|
||||||
|
servers... We will identify *remotes* by its name or ip. On some environments,
|
||||||
|
we want to configure the printers by remote, because users may change their
|
||||||
|
work place.
|
||||||
|
|
||||||
|
It adds an optional behaviour on reports to send it directly to a printer.
|
||||||
|
|
||||||
|
* `Use remote's configuration` use the remote's behaviour
|
||||||
|
|
||||||
|
Also, this option can be selected as a user default option for printer.
|
||||||
1
remote_report_to_printer/readme/USAGE.rst
Normal file
1
remote_report_to_printer/readme/USAGE.rst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* In *Settings > Remotes* configure the remotes printers by usage
|
||||||
@@ -66,7 +66,7 @@ class TestRemotePrinter(TransactionCase):
|
|||||||
report = self.Model.search([], limit=1)
|
report = self.Model.search([], limit=1)
|
||||||
self.env.user.printing_action = 'remote_default'
|
self.env.user.printing_action = 'remote_default'
|
||||||
report.property_printing_action_id = self.browse_ref(
|
report.property_printing_action_id = self.browse_ref(
|
||||||
'base_report_to_printer.printing_action_3'
|
'remote_report_to_printer.printing_action_3'
|
||||||
)
|
)
|
||||||
with patch(
|
with patch(
|
||||||
'odoo.addons.base_remote.models.base.Base.remote', new=self.remote
|
'odoo.addons.base_remote.models.base.Base.remote', new=self.remote
|
||||||
@@ -96,7 +96,7 @@ class TestRemotePrinter(TransactionCase):
|
|||||||
report = self.Model.search([], limit=1)
|
report = self.Model.search([], limit=1)
|
||||||
self.env.user.printing_action = 'remote_default'
|
self.env.user.printing_action = 'remote_default'
|
||||||
report.property_printing_action_id = self.browse_ref(
|
report.property_printing_action_id = self.browse_ref(
|
||||||
'base_report_to_printer.printing_action_3'
|
'remote_report_to_printer.printing_action_3'
|
||||||
)
|
)
|
||||||
with patch(
|
with patch(
|
||||||
'odoo.addons.base_remote.models.base.Base.remote',
|
'odoo.addons.base_remote.models.base.Base.remote',
|
||||||
|
|||||||
Reference in New Issue
Block a user