diff --git a/server_env_printing_server/README.rst b/server_env_printing_server/README.rst new file mode 100644 index 0000000..f5cd623 --- /dev/null +++ b/server_env_printing_server/README.rst @@ -0,0 +1,81 @@ +====================================== +Server Environment for Printing Server +====================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/14.0/server_env_printing_server + :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-14-0/report-print-send-14-0-server_env_printing_server + :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/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows the configuration of the fields +"Address" and "Port" on Printing Server from server environment. + +**Table of contents** + +.. contents:: + :local: + +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 +~~~~~~~ + +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Patrick Tombez +* `Trobz `_: + * nguyenhk + +Other credits +~~~~~~~~~~~~~ + +The migration of this module from 12.0 to 14.0 was financially supported by Camptocamp + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/server_env_printing_server/__init__.py b/server_env_printing_server/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/server_env_printing_server/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/server_env_printing_server/__manifest__.py b/server_env_printing_server/__manifest__.py new file mode 100644 index 0000000..6198992 --- /dev/null +++ b/server_env_printing_server/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright (C) 2021 Camptocamp () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Server Environment for Printing Server", + "version": "14.0.1.0.0", + "category": "Generic Modules/Base", + "author": "Camptocamp, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/report-print-send", + "license": "AGPL-3", + "depends": ["base_report_to_printer", "server_environment"], + "data": [], + "installable": True, + "application": False, +} diff --git a/server_env_printing_server/i18n/server_env_printing_server.pot b/server_env_printing_server/i18n/server_env_printing_server.pot new file mode 100644 index 0000000..4d2b520 --- /dev/null +++ b/server_env_printing_server/i18n/server_env_printing_server.pot @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * server_env_printing_server +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \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: server_env_printing_server +#: model:ir.model,name:server_env_printing_server.model_printing_server +msgid "Printing server" +msgstr "" + diff --git a/server_env_printing_server/models/__init__.py b/server_env_printing_server/models/__init__.py new file mode 100644 index 0000000..272f3c4 --- /dev/null +++ b/server_env_printing_server/models/__init__.py @@ -0,0 +1 @@ +from . import printing_server diff --git a/server_env_printing_server/models/printing_server.py b/server_env_printing_server/models/printing_server.py new file mode 100644 index 0000000..27bb3ae --- /dev/null +++ b/server_env_printing_server/models/printing_server.py @@ -0,0 +1,20 @@ +# Copyright (C) 2021 Camptocamp () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models + + +class PrintingServer(models.Model): + _name = "printing.server" + _inherit = ["printing.server", "server.env.mixin"] + + @property + def _server_env_fields(self): + base_fields = super()._server_env_fields + base_fields.update( + { + "address": {}, + "port": {}, + } + ) + return base_fields diff --git a/server_env_printing_server/readme/CONTRIBUTORS.rst b/server_env_printing_server/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..333aadf --- /dev/null +++ b/server_env_printing_server/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Patrick Tombez +* `Trobz `_: + * nguyenhk diff --git a/server_env_printing_server/readme/CREDITS.rst b/server_env_printing_server/readme/CREDITS.rst new file mode 100644 index 0000000..ca6e4f9 --- /dev/null +++ b/server_env_printing_server/readme/CREDITS.rst @@ -0,0 +1 @@ +The migration of this module from 12.0 to 14.0 was financially supported by Camptocamp diff --git a/server_env_printing_server/readme/DESCRIPTION.rst b/server_env_printing_server/readme/DESCRIPTION.rst new file mode 100644 index 0000000..3d41959 --- /dev/null +++ b/server_env_printing_server/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows the configuration of the fields +"Address" and "Port" on Printing Server from server environment. diff --git a/server_env_printing_server/static/description/icon.png b/server_env_printing_server/static/description/icon.png new file mode 100644 index 0000000..3a0328b Binary files /dev/null and b/server_env_printing_server/static/description/icon.png differ diff --git a/server_env_printing_server/static/description/index.html b/server_env_printing_server/static/description/index.html new file mode 100644 index 0000000..82521a8 --- /dev/null +++ b/server_env_printing_server/static/description/index.html @@ -0,0 +1,433 @@ + + + + + + +Server Environment for Printing Server + + + +
+

Server Environment for Printing Server

+ + +

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

+

This module allows the configuration of the fields +“Address” and “Port” on Printing Server from server environment.

+

Table of contents

+ +
+

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

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The migration of this module from 12.0 to 14.0 was financially supported by Camptocamp

+
+
+

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.

+
+
+
+ +