diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-13 09:50:57 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-13 09:50:57 +0700 |
| commit | 32bf7b115ec71e72d9cde58bfa3c0304c4b1ffcb (patch) | |
| tree | 19257db60cdd44a5527825825ab0032a2693f74d /indoteknik_custom/models/stock_picking.py | |
| parent | 3085bfa4333cbc99ed4a0e432c8313cf7009cd2a (diff) | |
| parent | 604ef36b09c2eb2cf89f5b592ab775ba87e0ce88 (diff) | |
Merge remote-tracking branch 'origin/staging' into real-stock
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index a14e71a3..2ddb5f75 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -298,14 +298,14 @@ class StockPicking(models.Model): # continue # raise UserError('Sudah pernah dikirim kalender') - if self.picking_type_id.code == 'outgoing': - for line in self.move_line_ids_without_package: - 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") - elif self.picking_type_id.code == 'incoming': - for line in self.move_ids_without_package: - if line.purchase_line_id.qty_received + line.quantity_done > line.purchase_line_id.product_qty: - raise UserError('Qty Received akan lebih dari Qty PO') + # if self.picking_type_id.code == 'outgoing': + # for line in self.move_line_ids_without_package: + # 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") + # elif self.picking_type_id.code == 'incoming': + # for line in self.move_ids_without_package: + # if line.purchase_line_id.qty_received + line.quantity_done > line.purchase_line_id.product_qty: + # raise UserError('Qty Received akan lebih dari Qty PO') if self.is_internal_use: self.approval_status = 'approved' |
