summaryrefslogtreecommitdiff
path: root/fixco_custom/models/upload_ginee.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2026-01-08 04:39:33 +0000
committerIT Fixcomart <it@fixcomart.co.id>2026-01-08 04:39:33 +0000
commitf5e9a57a021902317297eba2441a00b8968ba38c (patch)
tree1cc9916cab45f7afb00971fcb4c3dfde7e03dc14 /fixco_custom/models/upload_ginee.py
parent6659dcfa24fb1a1923f47be4e0b697489dd0a3bf (diff)
parent5c332365e81cda9a7bdb233a31880c3bec1d1e0e (diff)
Merged main into print_picking_list
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({