summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-06-13 09:13:15 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-06-13 09:13:15 +0700
commit4af22ad4f15865626f0a99fed233cb19d04d9b8c (patch)
tree303b95b45f562d7fc2b829c9a44a810ea25dfae0 /indoteknik_custom
parent8a025fe63ea44b93d3978da7df3aa31533da5300 (diff)
parent4db20f77298f38c52d9930da1942225f8b8eac50 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into tukar_guling
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/models/stock_picking.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 3921ed5a..9dfc8b78 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -529,13 +529,7 @@ class StockPicking(models.Model):
record.kgx_pod_photo = "No image available."
def action_fetch_lalamove_order(self):
- pickings = self.env['stock.picking'].search([
- ('picking_type_code', '=', 'outgoing'),
- ('state', '=', 'done'),
- ('carrier_id', '=', 9),
- ('lalamove_order_id', '!=', False)
- ])
- for picking in pickings:
+ for picking in self:
try:
order_id = picking.lalamove_order_id
apikey = self.env['ir.config_parameter'].sudo().get_param('lalamove.apikey')