diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-06-03 21:10:12 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-06-03 21:10:12 +0700 |
| commit | 8a9c08a21fd7d2ac63ef849d9417b11563092f0d (patch) | |
| tree | 4a32afbc0e2637f5d0c0a997cadc6cd00ee2fa14 | |
| parent | b519e0fdac46a64ffef87d27ba824038147d831b (diff) | |
(andri) perbaikan biteship pada stock picking
| -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 cdff6e32..7e001299 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -541,9 +541,9 @@ class StockPicking(models.Model): product = ml.product_id weight = product.weight or 0.1 # default minimal - line = ml.sale_line_id or self.env['sale.order.line'].search([ + line = ml.move_id.sale_line_id or self.env['sale.order.line'].search([ ('order_id', '=', self.sale_id.id), - ('product_id', '=', product.id) + ('product_id', '=', ml.product_id.id) ], limit=1) value = line.price_unit if line else 0 |
