summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2025-02-25 14:30:39 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2025-02-25 14:30:39 +0700
commit39da2566a2af32b3fdaeae1ce826e4f778e9b8ce (patch)
tree05a362b3dab64771f755c0b8902fb7156cf28ef8 /indoteknik_custom/models/sale_order.py
parent49a90fdef07cb9262eb43e63c7023e30925a3c0c (diff)
ketinggalan
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
-rwxr-xr-xindoteknik_custom/models/sale_order.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index d956e93a..43177f33 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -393,13 +393,6 @@ class SaleOrder(models.Model):
rec.eta_date = False
rec.eta_date_start = False
- @api.depends('date_order', 'state', 'estimated_arrival_days_start')
- def _compute_eta_start_date(self):
- for rec in self:
- if rec.date_order and rec.state not in ['cancel'] and rec.estimated_arrival_days_start:
- rec.eta_date_start = rec.date_order + timedelta(days=rec.estimated_arrival_days_start)
- else:
- rec.eta_date_start = False
def get_days_until_next_business_day(self,start_date=None, *args, **kwargs):
today = start_date or datetime.today().date()