mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] protect import if module is not present (#818)
* [FIX] Protect import for uninstalled module
This commit is contained in:
committed by
Guewen Baconnier
parent
cab1ce8282
commit
a33d9b0dcf
@@ -1,6 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2014 Camptocamp SA, 2017 ACSONE
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import models
|
||||
from . import wizard
|
||||
try:
|
||||
from odoo.addons.queue_job.job \
|
||||
import job, Job
|
||||
except (ImportError, IOError) as err:
|
||||
import logging
|
||||
_logger = logging.getLogger(__name__)
|
||||
_logger.debug(err)
|
||||
else:
|
||||
from . import models
|
||||
from . import wizard
|
||||
|
||||
Reference in New Issue
Block a user