[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). # 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,
} }

View File

@@ -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