summaryrefslogtreecommitdiff
path: root/fixco_custom/models/upload_ginee.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2026-01-08 10:23:29 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2026-01-08 10:23:29 +0700
commit5c332365e81cda9a7bdb233a31880c3bec1d1e0e (patch)
tree99209950c78011d98a24007a85452b2ae4554091 /fixco_custom/models/upload_ginee.py
parent23b2c540774c064a69c77ed3de29d9f99ffae904 (diff)
push
Diffstat (limited to 'fixco_custom/models/upload_ginee.py')
-rw-r--r--fixco_custom/models/upload_ginee.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fixco_custom/models/upload_ginee.py b/fixco_custom/models/upload_ginee.py
index 282bf74..6806a28 100644
--- a/fixco_custom/models/upload_ginee.py
+++ b/fixco_custom/models/upload_ginee.py
@@ -169,7 +169,7 @@ class UploadGinee(models.Model):
def action_get_order_id_and_create_detail_order(self):
self.date_upload = datetime.utcnow()
for line in self.ginee_lines:
- queue_job = self.env['queue.job'].search([('res_id', '=', line.id), ('method_name', '=', 'get_order_id_and_create_detail_order')], limit=1)
+ queue_job = self.env['queue.job'].search([('res_id', '=', line.id), ('method_name', '=', 'get_order_id_and_create_detail_order'), ('state', '!=', 'error')], limit=1)
if queue_job:
continue
self.env['queue.job'].create({