mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] : black, isort, prettier
This commit is contained in:
@@ -2,14 +2,14 @@
|
|||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': "Server Environment for Printing Server",
|
"name": "Server Environment for Printing Server",
|
||||||
'version': '12.0.1.0.0',
|
"version": "12.0.1.0.0",
|
||||||
'category': 'Generic Modules/Base',
|
"category": "Generic Modules/Base",
|
||||||
'author': "Camptocamp, Odoo Community Association (OCA)",
|
"author": "Camptocamp, Odoo Community Association (OCA)",
|
||||||
'website': 'https://github.com/OCA/report-print-send',
|
"website": "https://github.com/OCA/report-print-send",
|
||||||
'license': 'AGPL-3',
|
"license": "AGPL-3",
|
||||||
"depends": ['base_report_to_printer', 'server_environment'],
|
"depends": ["base_report_to_printer", "server_environment"],
|
||||||
'data': [],
|
"data": [],
|
||||||
'installable': True,
|
"installable": True,
|
||||||
'application': False,
|
"application": False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,14 +5,16 @@ from odoo import models
|
|||||||
|
|
||||||
|
|
||||||
class PrintingServer(models.Model):
|
class PrintingServer(models.Model):
|
||||||
_name = 'printing.server'
|
_name = "printing.server"
|
||||||
_inherit = ['printing.server', 'server.env.mixin']
|
_inherit = ["printing.server", "server.env.mixin"]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _server_env_fields(self):
|
def _server_env_fields(self):
|
||||||
base_fields = super()._server_env_fields
|
base_fields = super()._server_env_fields
|
||||||
base_fields.update({
|
base_fields.update(
|
||||||
'address': {},
|
{
|
||||||
'port': {},
|
"address": {},
|
||||||
})
|
"port": {},
|
||||||
|
}
|
||||||
|
)
|
||||||
return base_fields
|
return base_fields
|
||||||
|
|||||||
Reference in New Issue
Block a user