diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-09 11:35:17 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-09 11:35:17 +0700 |
| commit | 393958c36bf49b7b2dbd888b81c345b7734151a0 (patch) | |
| tree | 79cb8cc0a25d4cb11819d7759b4fd313a2fbf326 | |
| parent | 60a1f399181eb310beaf9f5ee9a7b0a6033b60ee (diff) | |
<Miqdad> balikin del dep date
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 8e947267..87182277 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1654,10 +1654,10 @@ class StockPicking(models.Model): line.sale_line_id = sale_line.id def write(self, vals): - allowed_user_ids = [17, 6277] - if 'driver_departure_date' in vals: - if self.env.user.id not in allowed_user_ids and not self.env.context.get('allow_driver_departure_edit'): - raise UserError("Hanya Denise dan Faisal yang dapat mengubah Delivery Departure Date.") + # allowed_user_ids = [17, 6277] + # if 'driver_departure_date' in vals: + # if self.env.user.id not in allowed_user_ids and not self.env.context.get('allow_driver_departure_edit'): + # raise UserError("Hanya Denise dan Faisal yang dapat mengubah Delivery Departure Date.") if 'linked_manual_bu_out' in vals: for record in self: |
