Skip to content

Commit 6ebbbb7

Browse files
author
bosd
committed
[IMP] sale_restricted_qty: add order name to product quantity restriction error message
1 parent 05297c8 commit 6ebbbb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sale_restricted_qty/models/sale.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ def check_restricted_qty(self):
178178

179179
if failed_constraints:
180180
failed_lines.append(
181-
_('Product "%(product_name)s": %(failed_constraints)s')
181+
_('%(order_name)s - Product "%(product_name)s": %(failed_constraints)s')
182182
% {
183+
"order_name": line.order_id.name,
183184
"product_name": line.product_id.name,
184185
"failed_constraints": ", ".join(failed_constraints),
185186
}

0 commit comments

Comments
 (0)