summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-12-02 13:37:28 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-12-02 13:37:28 +0700
commitdbe24b9cd600c7b5a9d0587f80a782ed93c9a761 (patch)
tree25de2d09ce992d4267231df6a204c907e4b1254a
parent87fffacec07389c984f95a86e9e0735dbb6b0665 (diff)
add name to validation
-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':