Я хочу напечатать варианты товара в виде описания товара в отчете о продаже заказа.Для этого я добавил новый тег th description и использовал span t-esc = "',' .join ([x.attribute_id для x in o.order_line.product_id.product_tmpl_id.attribute_line_ids]) "/ , но показывает ошибку QWebException:" элемент последовательности 0: ожидаемая строка, найден product.attribute "при оценке" ',' .join ([x.attribute_id дляx в doc.order_line.product_id.product_tmpl_id.attribute_line_ids]) ". Помогите, пожалуйста?
<t t-foreach="doc.order_line" t-as="l">
<tr t-if="l.product_uom_qty">
<td>
<span t-field="l.product_id.name"/>
</td>
<td>
<span><t t-esc="', '.join([x.attribute for x in doc.order_line.product_id.product_tmpl_id.seller_ids])"/> </span>
</td>
<td>
<span t-field="l.product_id.default_code"/>
</td>
<td>
<span><t t-esc="', '.join([x.product_code for x in doc.order_line.product_id.product_tmpl_id.attribute_line_ids])"/> </span>
</td>
<td class="text-right">
<span t-field="l.product_uom_qty"/>
<span groups="product.group_uom" t-field="l.product_uom"/>
</td>
<td class="text-right">
<span t-field="l.price_unit"/>
</td>
<td class="text-right">
<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_id))"/>
</td>
</tr>
</t>
</tbody>