summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/approval_date_doc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/approval_date_doc.py b/indoteknik_custom/models/approval_date_doc.py
index 638b44d7..3ba3b8dc 100644
--- a/indoteknik_custom/models/approval_date_doc.py
+++ b/indoteknik_custom/models/approval_date_doc.py
@@ -40,7 +40,7 @@ class ApprovalDateDoc(models.Model):
raise UserError("Hanya Accounting Yang Bisa Approve")
self.check_invoice_so_picking
# Tambahkan context saat mengupdate date_doc_kirim
- self.picking_id.with_context(from_button_approve=True).write({
+ self.picking_id.with_context(from_button_approve=True, allow_driver_departure_edit=True).write({
'driver_departure_date': self.driver_departure_date,
'date_doc_kirim': self.driver_departure_date,
'update_date_doc_kirim_add': True