Skip to Content
Menu
This question has been flagged
1 Reply
927 Views

I am creating an Ecommerce. Feedback from website comes into one of the module in odoo with all the products.

I have created a code but it only prints one product. The last one and not all products in e.g. for my case is requistion_line_ids


I am using the report_xlsx module. I would like it to print many products

Avatar
Discard
Author Best Answer

I managed to fix this. Instead of entering actual row and column while writing on excel

I assigned a variable to the rows and columns and after writing I input the variable and incremented by one:

row = 1
column = 0
for item in line_item:
sheet.write(row, column, item.product_id.default_code, formart1)
row += 1

Avatar
Discard