diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-08 15:04:22 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-08 15:04:22 +0700 |
| commit | f71f148d00b546bc46922eeeeaa512f79cecd573 (patch) | |
| tree | 5fa541a30df73c8f5bf741fe85f16e9980404975 | |
| parent | 3eb010cbf141d02fb3ea3812024a2b678fcb9f48 (diff) | |
<Miqdad> balikin sp
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 217e76cb..4772c433 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -178,14 +178,6 @@ class StockPicking(models.Model): area_name = fields.Char(string="Area", compute="_compute_area_name") is_bu_iu = fields.Boolean('Is BU/IU', compute='_compute_is_bu_iu', default=False, copy=False, readonl=True) - @api.constrains('driver_departure_date') - def _constrains_driver_departure_date(self): - allowed_user_ids = [17, 6277, 25] - for record in self: - if record.driver_departure_date and self.env.user.id not in allowed_user_ids: - raise UserError("Hanya Denise dan Faishal yang dapat mengubah Delivery Departure Date.") - - @api.depends('name') def _compute_is_bu_iu(self): for record in self: |
