summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-02 11:13:40 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-02 11:13:40 +0700
commit12c5971f46f3527ed9a8e1d865430d2b9fa25b38 (patch)
tree56b86701f9c35867097c2305718b8ee6b393e560 /indoteknik_custom/models
parentc18de3c57feabee1b84303b4a86d23b64a907beb (diff)
<MIqdad> Initial Commit
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/gudang_service.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/indoteknik_custom/models/gudang_service.py b/indoteknik_custom/models/gudang_service.py
index ce3b2919..55e27b65 100644
--- a/indoteknik_custom/models/gudang_service.py
+++ b/indoteknik_custom/models/gudang_service.py
@@ -35,7 +35,7 @@ class GudangService(models.Model):
# )
remaining_date = fields.Char(
compute='_compute_remaining_date',
- string='Remaining Date'
+ string='Date Status'
)
state = fields.Selection([('draft', 'Backlog'), ('onprogress', 'On Progress'),('done', 'Done'), ('cancel', 'Cancel')], default='draft', tracking=True)
cancel_reason = fields.Text('Cancel Reason', tracking=True)
@@ -88,27 +88,6 @@ class GudangService(models.Model):
if records:
records._send_logistic_notification()
- # @api.depends('schedule_date', 'start_date', 'state')
- # def _compute_unprocessed_date(self):
- # today = fields.Date.today()
-
- # for rec in self:
- # if not rec.schedule_date or rec.state == 'cancel':
- # rec.unprocessed_date = "-"
- # continue
-
- # schedule = rec.schedule_date
-
- # # BELUM DIPROSES
- # if not rec.start_date:
- # days = (today - schedule).days
-
- # # SUDAH DIPROSES
- # else:
- # days = (rec.start_date.date() - schedule).days
-
- # rec.unprocessed_date = _("Unprocessed %s days") % max(days, 0)
-
@api.depends('schedule_date', 'create_date')
def _compute_remaining_date(self):
today = fields.Date.today()