[FIX] connector_opencart: another missing var doh!

This commit is contained in:
Jared Kipe
2022-12-16 02:02:14 +00:00
parent 110550f68b
commit ec4b609ced

View File

@@ -450,7 +450,8 @@ class SaleImportRule(Component):
return True return True
def _rule_check_status(self, record, method): def _rule_check_status(self, record, method):
if record['order_status'] in self._status_import_later: order_status = record['order_status']
if order_status in self._status_import_later:
order_id = record['order_id'] order_id = record['order_id']
raise RetryableJobError('Order %s is in %s and will be re-tried later.' % (order_id, order_status)) raise RetryableJobError('Order %s is in %s and will be re-tried later.' % (order_id, order_status))
return True return True