diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-02 13:37:38 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-02 13:37:38 +0700 |
| commit | b3cddd483107f9cf97c2651262d5770ba6a13d92 (patch) | |
| tree | afcb54c6f7f62548b7f7dcfa90ae7b42d34f5576 | |
| parent | 6e049ba60b4ee6e20231787af3e7e3c0abcf188a (diff) | |
fix bug
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 49f2ec80..6083e9e7 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -354,9 +354,6 @@ class StockPicking(models.Model): def button_validate(self): - if not self.env.user.is_purchasing_manager: - raise UserError("Harus di Approve oleh Purchasing Manager") - if self._name != 'stock.picking': return super(StockPicking, self).button_validate() |
