-1

for example,my string python expression is:

res = ''
for item in object.order_line:res = res + item.product_id.name + ','result = res[:-1]

so i want to get the value of product_id.name while execute my python expression,

A. Suliman
  • 12,923
  • 5
  • 24
  • 37

1 Answers1

0

res = res + item['product_id']['name'] + ','