summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fixco_custom/models/upload_ginee.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fixco_custom/models/upload_ginee.py b/fixco_custom/models/upload_ginee.py
index f69e7d2..f1ce9ce 100644
--- a/fixco_custom/models/upload_ginee.py
+++ b/fixco_custom/models/upload_ginee.py
@@ -284,9 +284,9 @@ class UploadGineeLine(models.Model):
if not line.order_id:
raise UserError(_('Order ID is empty!'))
- if self.env['detail.order'].search([('detail_order', 'ilike', line.order_id)]):
+ if self.env['sale.order'].search([('invoice_mp', 'ilike', line.invoice_marketplace)]):
raise UserError(_(
- "Order ID %s already exists in Detail Orders") % line.order_id)
+ "Invoice Marketplace %s already exists in Detail Orders") % line.invoice_marketplace)
data = line._call_api(BATCH_GET_URI, {"orderIds": [line.order_id]})
detail_order = self.env['detail.order'].create({