mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
IMP connector_opencart Debugged through adding order history for "Shipped" with the tracking number in the comment.
This commit is contained in:
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user