Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3010 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
черв. 25
591
3
черв. 25
2851
4
січ. 18
8356
1
лют. 24
5128
0
бер. 23
2072