跳至內容
選單
此問題已被標幟
1 回覆
3014 瀏覽次數

I have a product with two variants.

I've create two new columns on Quotation PDF and I want to fill each of them with one of the variants, like below:


QUANTITY
PRODUCT
COLOR
SIZE
PRICE
1
T-Shirt
Blue
M
$100
4
Sweater
Red
XL
$400


I'm trying to use:

<td name="td_color" class="text-right">
       <span t-field="line.product_template_attribute_value_ids"/>
</td>

<td name="td_size" class="text-right">
       <span t-field="line.product_template_attribute_value_ids"/>
</td>


but that prints BOTH variants on a single column, like this:

QUANTITY
PRODUCT
COLOR
SIZE
PRICE
1
T-Shirt
Blue, M
Blue, M
$100
4
Sweater
Red, XL
Red, XL
$400


How can I make only one of the variants appear on each column?

頭像
捨棄

I would like to know that too


do you have a solution already?

最佳答案

Hi Hugo, 

can you try this way.


Thanks.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
6月 25
597
3
6月 25
2862
4
1月 18
8362
1
2月 24
5166
0
3月 23
2091