diff options
| author | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-10 14:49:13 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-10 14:49:13 +0700 |
| commit | 10ddd8835a98bbfe58abedf6a405929dfbbb76d0 (patch) | |
| tree | a61cea71a2e732a70d20fcbcc271d79e69ded02c /indoteknik_custom/models/stock_picking.py | |
| parent | b0d0e26965ab1ba7aa0c5a607cc0a12a67546dfc (diff) | |
| parent | e4b191155bf44bfcd58d6ae1b95d4a112bd43547 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
| -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: |
