diff options
| author | Stephan Christianus <stephanchrst@gmail.com> | 2023-01-16 10:02:53 +0000 |
|---|---|---|
| committer | Stephan Christianus <stephanchrst@gmail.com> | 2023-01-16 10:02:53 +0000 |
| commit | f3d44eb32705c07c28f688300d54c36e7e26bd10 (patch) | |
| tree | 69e3fa5c1a5b28da935435440d3eb99ef2a2117c /indoteknik_custom/models/stock_picking.py | |
| parent | 4cec68ef40a33071d949c33c1592c146779f1abe (diff) | |
| parent | f960f1c092cdb7669152f8caca7afad314a59877 (diff) | |
Merged in release (pull request #24)
Release
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index d19214d2..84a374c5 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -145,10 +145,8 @@ class StockPicking(models.Model): continue raise UserError('Sudah pernah dikirim kalender') - is_delivered_validation = self.env['ir.config_parameter'].get_param( - 'stock_picking.qty_delivered_validation') for line in self.move_line_ids_without_package: - if line.move_id.sale_line_id and self.picking_type_id.code == 'outgoing' and is_delivered_validation == 'Y': + if line.move_id.sale_line_id and self.picking_type_id.code == 'outgoing': if line.move_id.sale_line_id.qty_delivered + line.qty_done > line.move_id.sale_line_id.product_uom_qty: raise UserError("Qty Delivered akan lebih dari Qty SO") |
