summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-12-03 13:25:40 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-12-03 13:25:40 +0700
commit585ce08efde0f61ba6462b8e303cb08615f0cf33 (patch)
treee09bf1d4787c1bbe2d2ced4fc16c554ade520dd8 /indoteknik_custom/models/stock_picking.py
parent4bd636d8b79c45878f13865d04f726f0729996ef (diff)
parentdbe24b9cd600c7b5a9d0587f80a782ed93c9a761 (diff)
Merge branch 'production' into iman/pengajuan-tempo
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 17dd5766..03b10cdb 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -539,7 +539,7 @@ class StockPicking(models.Model):
qty_onhand = check_qty_per_inventory(self, line.product_id, line.location_id)
if line.qty_done > qty_onhand:
- raise UserError('Quantity Done melebihi Quantity Onhand')
+ raise UserError(f'{line.product_id.display_name} : Quantity Done melebihi Quantity Onhand')
def button_validate(self):
if not self.env.user.is_logistic_approver and self.env.context.get('active_model') == 'stock.picking':