black formatter
This commit is contained in:
parent
54c049c104
commit
6373f1f62e
@ -11,7 +11,7 @@ from requests import codes as codes_request, post as post_request
|
|||||||
from requests.exceptions import RequestException
|
from requests.exceptions import RequestException
|
||||||
|
|
||||||
from odoo import _, api, fields, models
|
from odoo import _, api, fields, models
|
||||||
from odoo.addons.gotenberg.service.utils import get_auth, convert_pdf_from_office_url
|
from odoo.addons.gotenberg.service.utils import get_auth, convert_pdf_from_office_url
|
||||||
from odoo.exceptions import AccessError, UserError
|
from odoo.exceptions import AccessError, UserError
|
||||||
from odoo.http import request
|
from odoo.http import request
|
||||||
from odoo.tools.safe_eval import safe_eval, time
|
from odoo.tools.safe_eval import safe_eval, time
|
||||||
@ -363,7 +363,7 @@ class IrActionsReport(models.Model):
|
|||||||
response = post_request(
|
response = post_request(
|
||||||
url,
|
url,
|
||||||
files={"file": ("converted_file.docx", content_stream.read())},
|
files={"file": ("converted_file.docx", content_stream.read())},
|
||||||
auth=auth
|
auth=auth,
|
||||||
)
|
)
|
||||||
if response.status_code == codes_request.ok:
|
if response.status_code == codes_request.ok:
|
||||||
result = response.content
|
result = response.content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user