mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 03:52:01 +02:00
19.0 vanilla
This commit is contained in:
parent
0a7ae8db93
commit
991d2234ca
416 changed files with 646602 additions and 300844 deletions
|
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""Utilities for generating, parsing and checking XML/XSD files on top of the lxml.etree module."""
|
||||
|
||||
import base64
|
||||
|
|
@ -8,7 +7,6 @@ import re
|
|||
import zipfile
|
||||
from io import BytesIO
|
||||
|
||||
import requests
|
||||
from lxml import etree
|
||||
|
||||
from odoo.exceptions import UserError
|
||||
|
|
@ -232,6 +230,7 @@ def load_xsd_files_from_url(env, url, file_name=None, force_reload=False,
|
|||
:rtype: odoo.api.ir.attachment | bool
|
||||
:return: every XSD attachment created/fetched or False if an error occurred (see warning logs)
|
||||
"""
|
||||
import requests # noqa: PLC0415
|
||||
try:
|
||||
_logger.info("Fetching file/archive from given URL: %s", url)
|
||||
response = requests.get(url, timeout=request_max_timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue