Skip to content

Commit 38dd352

Browse files
committed
[FIX]stock_ux: copy method arguments
closes #811 X-original-commit: d39020d Signed-off-by: Juan Carreras <jc@adhoc.com.ar>
1 parent d047712 commit 38dd352

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

stock_ux/models/stock_picking.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@ def copy(self, default=None):
7171
if not default and picking.picking_type_id.block_additional_quantity:
7272
raise UserError(
7373
_(
74-
'You can not duplicate a Picking because "Block'
75-
' Additional Quantity" is enabled on the picking type "%s"'
74+
'You can not duplicate a Picking because "Block Additional Quantity" is enabled on the picking type "%(name)s"'
7675
)
77-
% (picking.picking_type_id.name)
76+
% {"name": picking.picking_type_id.name}
7877
)
7978
return super().copy(default=default)
8079

0 commit comments

Comments
 (0)