Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3207 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ

I would like to know that too


do you have a solution already?

Câu trả lời hay nhất

Hi Hugo, 

can you try this way.


Thanks.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 25
1174
3
thg 6 25
3321
4
thg 1 18
8808
1
thg 2 24
5786
0
thg 3 23
2485