[FIX] printer_zpl2: Adapt code about having the library embedded

This commit is contained in:
Pedro M. Baeza
2022-09-09 11:10:59 +02:00
committed by duongtq
parent 2cbcd113cd
commit bbe3bed089
6 changed files with 9 additions and 39 deletions

View File

@@ -14,12 +14,9 @@ from odoo import _, api, exceptions, fields, models
from odoo.exceptions import ValidationError
from odoo.tools.safe_eval import safe_eval, wrap_module
_logger = logging.getLogger(__name__)
from . import zpl2
try:
import zpl2
except ImportError:
_logger.debug("Cannot `import zpl2`.")
_logger = logging.getLogger(__name__)
class PrintingLabelZpl2(models.Model):