[IMP] report_py3o, report_py3o_fusion_server: black, isort

This commit is contained in:
Laurent Mignon (ACSONE)
2019-11-19 14:36:37 +01:00
committed by Alexis de Lattre
parent 19961919e6
commit b2735878e4
6 changed files with 397 additions and 326 deletions

View File

@@ -4,16 +4,21 @@ from odoo import fields, models
class Py3oServer(models.Model):
_name = 'py3o.server'
_description = 'Py3o server'
_rec_name = 'url'
_name = "py3o.server"
_description = "Py3o server"
_rec_name = "url"
url = fields.Char(
"Py3o Fusion Server URL", required=True,
"Py3o Fusion Server URL",
required=True,
help="If your Py3o Fusion server is on the same machine and runs "
"on the default port, the URL is http://localhost:8765/form")
"on the default port, the URL is http://localhost:8765/form",
)
is_active = fields.Boolean("Active", default=True)
pdf_options_id = fields.Many2one(
'py3o.pdf.options', string='PDF Options', ondelete='restrict',
"py3o.pdf.options",
string="PDF Options",
ondelete="restrict",
help="PDF options can be set per Py3o Server but also per report. "
"If both are defined, the options on the report are used.")
"If both are defined, the options on the report are used.",
)