[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

@@ -11,12 +11,9 @@ from PIL import Image, ImageOps
from odoo import _, fields, models
_logger = logging.getLogger(__name__)
from ..models import zpl2
try:
import zpl2
except ImportError:
_logger.debug("Cannot `import zpl2`.")
_logger = logging.getLogger(__name__)
def _compute_arg(data, arg):