Browse Source

[FIX] *_paypal: correct imports end dependencies

csv is part of the standard python library. Therefore should not be treated as an external dependency.
12.0
Ronald Portier 3 years ago
committed by Ronald Portier (Therp BV)
parent
commit
f627da2243
  1. 14
      account_bank_statement_import_paypal/models/account_bank_statement_import_paypal_parser.py

14
account_bank_statement_import_paypal/models/account_bank_statement_import_paypal_parser.py

@ -1,23 +1,19 @@
# Copyright 2019 Tecnativa - Vicent Cubells # Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019 Brainbean Apps (https://brainbeanapps.com) # Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import itertools
import logging
from odoo import api, models, _
from csv import reader
from datetime import datetime from datetime import datetime
from decimal import Decimal from decimal import Decimal
from io import StringIO from io import StringIO
from os import path from os import path
import itertools
from pytz import timezone, utc from pytz import timezone, utc
import logging
_logger = logging.getLogger(__name__)
from odoo import api, models, _
try:
from csv import reader
except (ImportError, IOError) as err:
_logger.error(err)
_logger = logging.getLogger(__name__)
class AccountBankStatementImportPayPalParser(models.TransientModel): class AccountBankStatementImportPayPalParser(models.TransientModel):

Loading…
Cancel
Save