summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-05-21 13:23:49 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-05-21 13:23:49 +0700
commita40f08df72d7b1b034ba4e69bc4a80d5b3e2b87c (patch)
tree21d7a0fed84ae5de156386255307770e1cf7aa56
parent66944c76ff475f2228c786d9057f9adbc93a1213 (diff)
add limit
-rw-r--r--indoteknik_custom/models/ged.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/ged.py b/indoteknik_custom/models/ged.py
index a175c330..8dc53b63 100644
--- a/indoteknik_custom/models/ged.py
+++ b/indoteknik_custom/models/ged.py
@@ -265,7 +265,7 @@ class DunningRunGed(models.Model):
('shipper_faktur_id', '=', 123),
('date_terima_tukar_faktur', '=', False)
]
- dunnings = self.env['dunning.run'].search(query)
+ dunnings = self.env['dunning.run'].search(query, limit=20)
for dunning in dunnings:
current_tracking = self.env['ged.tracking'].search([('awb_no', '=', dunning.resi_tukar_faktur)], limit=1)