Odoo Help


website_sale.cart_lines shows empty cart

Axel Kerbec
on 9/22/16, 7:30 AM 442 views

Hello, I would like to show the cart on the shop page of the odoo e-commerce module, however when I call 

<t t-call="website_sale.cart_lines"/>

All it does is tell me that my cart is empty, even though it is not. Going on the "cart" page is fine, and it shows me the items in my cart. Why isn't my t-call working as expected?


You need to set "website_sale_order"

<t t-call="website_sale.cart_lines">
    <t t-set="website_sale_order" t-value="website.sale_get_order()"/>

That fixes your issue ? 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 9/22/16, 7:30 AM
Seen: 442 times
Last updated: 9/22/16, 8:15 AM