diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-10 10:55:28 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-10 10:55:28 +0700 |
| commit | e8ffbec31ade7e33d4da2c82c1c675f9291b38ef (patch) | |
| tree | f3ad8944290205a8d6d807c93b01552df568c549 | |
| parent | 137e812a5d96e1d5a82ceffbdf6a0938358e4d07 (diff) | |
<Miqdad> approval datedoc del dep date
| -rw-r--r-- | indoteknik_custom/models/approval_date_doc.py | 2 |
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 |
