[IMP] : black, isort, prettier

This commit is contained in:
nguyenhk
2022-01-07 11:46:34 +07:00
parent 0ff751b622
commit 3750bb0def
2 changed files with 18 additions and 16 deletions

View File

@@ -2,14 +2,14 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Server Environment for Printing Server",
'version': '12.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,
"name": "Server Environment for Printing Server",
"version": "12.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,
}

View File

@@ -5,14 +5,16 @@ from odoo import models
class PrintingServer(models.Model):
_name = 'printing.server'
_inherit = ['printing.server', 'server.env.mixin']
_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': {},
})
base_fields.update(
{
"address": {},
"port": {},
}
)
return base_fields