diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-11 17:25:00 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-11 17:25:00 +0700 |
| commit | 6c749fd5c8deee7e38cc123b77e06b938bdcc3b3 (patch) | |
| tree | 2d5e7c787ba05b36ae943cadaa33f3367df0c005 | |
| parent | bb3129b395d5399e08378ca0c2b9fd9dc5dbdb56 (diff) | |
<Miqdad> try fix cannot validate ort
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index ab6d2966..065b1484 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1397,7 +1397,8 @@ class StockPicking(models.Model): ]) if quant: - return quant.quantity + return sum(quant.mapped('quantity')) + # return quant.quantity return 0 |
