summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-03-14 09:36:51 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-03-14 09:36:51 +0700
commit9acebb424ead07109438e46c4f96038c9f50fbec (patch)
treef7bd4c05805986048aa5bc785bad31d584f7b836
parentb445c5dc3621f3c4ad9ca4968a66ca25e2a1f84d (diff)
cr calculate Estimated Ready To Ship Date
-rwxr-xr-xindoteknik_custom/models/sale_order.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 14a8e688..01aefe7a 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -206,8 +206,7 @@ class SaleOrder(models.Model):
)
expected_ready_to_ship = fields.Datetime(
string='ET Ready to Ship',
- copy=False,
- store=True
+ copy=False
)
shipping_method_picking = fields.Char(string='Shipping Method Picking', compute='_compute_shipping_method_picking')
@@ -555,7 +554,7 @@ class SaleOrder(models.Model):
return {'slatime': max_slatime, 'include_instant': include_instant}
- @api.depends("order_line.product_id")
+ # @api.depends("order_line.product_id")
def _compute_etrts_date(self): #Function to calculate Estimated Ready To Ship Date
for rec in self:
max_slatime = 1 # Default SLA jika tidak ada
@@ -1258,7 +1257,7 @@ class SaleOrder(models.Model):
order._set_sppkp_npwp_contact()
order.calculate_line_no()
order.send_notif_to_salesperson()
- order._compute_etrts_date()
+ # order._compute_etrts_date()
# order.order_line.get_reserved_from()
res = super(SaleOrder, self).action_confirm()