summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2025-03-05 22:03:13 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2025-03-05 22:03:13 +0700
commit0554da8389d1622dc91aafee74390de888db9a6f (patch)
treeb125d1860c4027eceb5dfc78137ef0f5347dfb0c
parentd387ac2205c70b7741120a5860895aad4d5ab122 (diff)
update stock picing
-rw-r--r--indoteknik_custom/models/stock_picking.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 17ef1228..89531b79 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -182,7 +182,7 @@ class StockPicking(models.Model):
estimated_ready_ship_date = fields.Datetime(string='ET Ready to Ship', copy=False, related='sale_id.estimated_ready_ship_date')
countdown_hours = fields.Float(string='Countdown in Hours', compute='_callculate_sequance', default=False, store=False, compute_sudo=False)
countdown_ready_to_ship = fields.Char(string='Countdown Ready to Ship', compute='_callculate_sequance', store=False, compute_sudo=False)
- final_seq = fields.Float(string='Sequance Order', index=True)
+ final_seq = fields.Float(string='Remaining Time')
def schduled_update_sequance(self):
@@ -207,7 +207,7 @@ class StockPicking(models.Model):
record.countdown_hours = 999999999999
record.countdown_ready_to_ship = False
except Exception as e :
- _logger.error(f"Error calculating sequance {self.id}: {str(e)}")
+ _logger.error(f"Error calculating sequance {record.id}: {str(e)}")
print(str(e))
return { 'error': str(e) }