summaryrefslogtreecommitdiff
path: root/fixco_custom/models
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-18 10:09:22 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-18 10:09:22 +0700
commit603486387b19a00b9831805e049c2207970a9c0b (patch)
treea4192c0157c801ebc982cb6a6ac7392ad5812686 /fixco_custom/models
parentc5ccdc87a4367367733783dfe71e9237557722c1 (diff)
<Miqdad> fix cannot validate stock picking
Diffstat (limited to 'fixco_custom/models')
-rwxr-xr-xfixco_custom/models/stock_picking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py
index 0eebe6a..9d25944 100755
--- a/fixco_custom/models/stock_picking.py
+++ b/fixco_custom/models/stock_picking.py
@@ -126,7 +126,7 @@ class StockPicking(models.Model):
])
if quant:
- return quant.quantity
+ return sum(quant.mapped('quantity'))
return 0