diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-12-05 17:09:39 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-12-05 17:09:39 +0700 |
| commit | 979a7368d6f3eb550d589dc4b980a3550d209d4e (patch) | |
| tree | c1da2510e011326bd75621e2161a6e922fc723d3 | |
| parent | 48ad2e6fa61fa34299a029a61e8a24943365bdbb (diff) | |
uncomment for validation
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 50f11e57..84a374c5 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -126,8 +126,8 @@ class StockPicking(models.Model): if not self.picking_code: self.picking_code = self.env['ir.sequence'].next_by_code('stock.picking.code') or '0' - # if self.picking_type_id.code == 'incoming' and self.group_id.id == False and self.is_internal_use == False: - # raise UserError(_('Tidak bisa Validate jika tidak dari Document SO / PO')) + if self.picking_type_id.code == 'incoming' and self.group_id.id == False and self.is_internal_use == False: + raise UserError(_('Tidak bisa Validate jika tidak dari Document SO / PO')) if self.is_internal_use and not self.env.user.is_accounting: raise UserError("Harus di Approve oleh Accounting") |
