Odoo Help


website_sale.cart_lines shows empty cart

Axel Kerbec
on 9/22/16, 7:30 AM 603 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?


Jérémy Kersten (jke)

--Jérémy Kersten (jke)--

| 3 3 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 9/22/16, 7:42 AM

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: 603 times
Last updated: 9/22/16, 8:15 AM