diff --git a/remote_report_to_printer/README.rst b/remote_report_to_printer/README.rst index 4261fcc..1bd946e 100644 --- a/remote_report_to_printer/README.rst +++ b/remote_report_to_printer/README.rst @@ -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 - :alt: License: AGPL-3 +============================ +Report to printer on remotes +============================ -================= -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. @@ -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. +**Table of contents** + +.. contents:: + :local: + 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 =========== -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 smashing it by providing a detailed and welcomed feedback. +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Creu Blanca Contributors ------------- +~~~~~~~~~~~~ * Enric Tobella -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/report-print-send `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/remote_report_to_printer/__manifest__.py b/remote_report_to_printer/__manifest__.py index 199b330..39a8836 100644 --- a/remote_report_to_printer/__manifest__.py +++ b/remote_report_to_printer/__manifest__.py @@ -3,10 +3,10 @@ { 'name': "Report to printer on remotes", - 'version': '11.0.2.1.1', + 'version': '12.0.2.1.1', 'category': 'Generic Modules/Base', 'author': "Creu Blanca, Odoo Community Association (OCA)", - 'website': 'http://www.agilebg.com', + 'website': 'http://www.github.com/OCA/report-print-send', 'license': 'AGPL-3', "depends": ['base_remote', 'base_report_to_printer'], 'data': [ @@ -16,5 +16,4 @@ 'views/res_remote_printer_views.xml', ], 'installable': True, - 'application': True, } diff --git a/remote_report_to_printer/data/printing_data.xml b/remote_report_to_printer/data/printing_data.xml index b6c54b5..9bf8c12 100644 --- a/remote_report_to_printer/data/printing_data.xml +++ b/remote_report_to_printer/data/printing_data.xml @@ -6,4 +6,8 @@ remote_default + + Use User Defaults + user_default + diff --git a/remote_report_to_printer/i18n/remote_report_to_printer.pot b/remote_report_to_printer/i18n/remote_report_to_printer.pot index c6a6d9c..3a1b8f4 100644 --- a/remote_report_to_printer/i18n/remote_report_to_printer.pot +++ b/remote_report_to_printer/i18n/remote_report_to_printer.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -19,47 +19,47 @@ msgid "A Remote cannot have the same printer for the same usage" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_create_uid +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__create_uid msgid "Created by" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_create_date +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__create_date msgid "Created on" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_display_name +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__display_name msgid "Display Name" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_id +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__id msgid "ID" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_is_default +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__is_default msgid "Is Default" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer___last_update +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer____last_update msgid "Last Modified on" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_write_uid +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__write_uid msgid "Last Updated by" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_write_date +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__write_date msgid "Last Updated on" msgstr "" #. module: remote_report_to_printer -#: code:addons/remote_report_to_printer/models/res_remote_printer.py:48 +#: code:addons/remote_report_to_printer/models/res_remote_printer.py:49 #, python-format msgid "Only one default printer is allowed" msgstr "" @@ -70,38 +70,39 @@ msgid "Print Job Action" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_printer_id +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__printer_id msgid "Printer" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_printer_tray_id +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__printer_tray_id msgid "Printer Tray" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_printer_usage +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__printer_usage msgid "Printer Usage" msgstr "" #. module: remote_report_to_printer -#: model:ir.ui.view,arch_db:remote_report_to_printer.res_remote_form +#: model_terms:ir.ui.view,arch_db:remote_report_to_printer.res_remote_form msgid "Printers" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer_remote_id +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_printer__remote_id msgid "Remote" msgstr "" #. module: remote_report_to_printer -#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote_remote_printer_ids -#: model:ir.ui.view,arch_db:remote_report_to_printer.res_remote_printer_form +#: model:ir.model,name:remote_report_to_printer.model_res_remote_printer +#: model:ir.model.fields,field_description:remote_report_to_printer.field_res_remote__remote_printer_ids +#: model_terms:ir.ui.view,arch_db:remote_report_to_printer.res_remote_printer_form msgid "Remote Printer" msgstr "" #. module: remote_report_to_printer -#: model:ir.ui.view,arch_db:remote_report_to_printer.res_remote_printer_tree +#: model_terms:ir.ui.view,arch_db:remote_report_to_printer.res_remote_printer_tree msgid "Remote Printers" msgstr "" @@ -110,18 +111,18 @@ msgstr "" msgid "Remotes" msgstr "" +#. module: remote_report_to_printer +#: model:ir.model,name:remote_report_to_printer.model_ir_actions_report +msgid "Report Action" +msgstr "" + #. module: remote_report_to_printer #: selection:res.remote.printer,printer_usage:0 msgid "Standard" msgstr "" #. module: remote_report_to_printer -#: model:ir.model,name:remote_report_to_printer.model_ir_actions_report -msgid "ir.actions.report" -msgstr "" - -#. module: remote_report_to_printer -#: model:ir.model,name:remote_report_to_printer.model_res_remote_printer -msgid "res.remote.printer" +#: model:ir.model.fields,field_description:remote_report_to_printer.field_printing_action__action_type +msgid "Type" msgstr "" diff --git a/remote_report_to_printer/models/res_remote_printer.py b/remote_report_to_printer/models/res_remote_printer.py index 50faaaf..5f86d7b 100644 --- a/remote_report_to_printer/models/res_remote_printer.py +++ b/remote_report_to_printer/models/res_remote_printer.py @@ -6,6 +6,7 @@ from odoo.exceptions import ValidationError class ResRemotePrinter(models.Model): _name = 'res.remote.printer' + _description = 'Remote Printer' remote_id = fields.Many2one( 'res.remote', diff --git a/remote_report_to_printer/readme/CONTRIBUTORS.rst b/remote_report_to_printer/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..93ec993 --- /dev/null +++ b/remote_report_to_printer/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Enric Tobella diff --git a/remote_report_to_printer/readme/DESCRIPTION.rst b/remote_report_to_printer/readme/DESCRIPTION.rst new file mode 100644 index 0000000..3aa0c75 --- /dev/null +++ b/remote_report_to_printer/readme/DESCRIPTION.rst @@ -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. diff --git a/remote_report_to_printer/readme/USAGE.rst b/remote_report_to_printer/readme/USAGE.rst new file mode 100644 index 0000000..b923702 --- /dev/null +++ b/remote_report_to_printer/readme/USAGE.rst @@ -0,0 +1 @@ + * In *Settings > Remotes* configure the remotes printers by usage diff --git a/remote_report_to_printer/static/description/index.html b/remote_report_to_printer/static/description/index.html new file mode 100644 index 0000000..d7b56ea --- /dev/null +++ b/remote_report_to_printer/static/description/index.html @@ -0,0 +1,437 @@ + + + + + + +Report to printer on remotes + + + +
+

Report to printer on remotes

+ + +

Beta License: AGPL-3 OCA/report-print-send Translate me on Weblate Try me on Runbot

+

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.

+

Table of contents

+ +
+

Usage

+
+
    +
  • In Settings > Remotes configure the remotes printers by usage
  • +
+
+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Creu Blanca
  • +
+
+
+

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/report-print-send project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/remote_report_to_printer/tests/test_printer.py b/remote_report_to_printer/tests/test_printer.py index cfee617..27677b2 100644 --- a/remote_report_to_printer/tests/test_printer.py +++ b/remote_report_to_printer/tests/test_printer.py @@ -66,7 +66,7 @@ class TestRemotePrinter(TransactionCase): report = self.Model.search([], limit=1) self.env.user.printing_action = 'remote_default' report.property_printing_action_id = self.browse_ref( - 'base_report_to_printer.printing_action_3' + 'remote_report_to_printer.printing_action_3' ) with patch( 'odoo.addons.base_remote.models.base.Base.remote', new=self.remote @@ -96,7 +96,7 @@ class TestRemotePrinter(TransactionCase): report = self.Model.search([], limit=1) self.env.user.printing_action = 'remote_default' report.property_printing_action_id = self.browse_ref( - 'base_report_to_printer.printing_action_3' + 'remote_report_to_printer.printing_action_3' ) with patch( 'odoo.addons.base_remote.models.base.Base.remote',