mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] printer_zpl2: Adapt code about having the library embedded
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user