IMP connector_opencart Debugged through adding order history for "Shipped" with the tracking number in the comment.

This commit is contained in:
Jared Kipe
2019-11-27 09:13:55 -08:00
parent 1fdaf7cb8f
commit c773a940d3
4 changed files with 34 additions and 26 deletions

View File

@@ -1,12 +1,8 @@
# © 2019 Hibou Corp.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.addons.component.core import Component
from odoo.addons.queue_job.exception import NothingToDoJob
from logging import getLogger
_logger = getLogger(__name__)
class OpencartPickingExporter(Component):
@@ -30,6 +26,7 @@ class OpencartPickingExporter(Component):
"""
if binding.external_id:
return 'Already exported'
tracking = self._get_tracking(binding)
if not tracking:
raise NothingToDoJob('Cancelled: the delivery order does not contain tracking.')