[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
parent f40c0e4d29
commit 68ab41ca6f
7 changed files with 9 additions and 40 deletions

View File

@@ -5,12 +5,10 @@ import logging
from odoo import api, fields, models
from . import zpl2
_logger = logging.getLogger(__name__)
try:
import zpl2
except ImportError:
_logger.debug("Cannot `import zpl2`.")
DEFAULT_PYTHON_CODE = """# Python One-Liners
# - object: %s record on which the action is triggered; may be void