Skip to content

Commit be0a917

Browse files
Merge pull request #603 from akretion/16-rma-move-name-product
[16][IMP] Display product display name on incoming/outgoing stock move instead of rma ref
2 parents 86c4d6a + d89a533 commit be0a917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rma/wizards/rma_make_picking.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _get_procurement_data(self, item, group, qty, picking_type):
125125
if not warehouse:
126126
raise ValidationError(_("No warehouse specified"))
127127
procurement_data = {
128-
"name": line.rma_id and line.rma_id.name or line.name,
128+
"name": line.product_id.display_name,
129129
"group_id": group,
130130
"origin": group and group.name or line.name,
131131
"warehouse_id": warehouse,
@@ -169,7 +169,7 @@ def _create_procurement(self, item, picking_type):
169169
qty,
170170
item.line_id.product_id.product_tmpl_id.uom_id,
171171
values.get("location_id"),
172-
values.get("origin"),
172+
values.get("name"),
173173
values.get("origin"),
174174
self.env.company,
175175
values,

0 commit comments

Comments
 (0)