Odoo Help


This community 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.


website_sale.cart_lines shows empty cart

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


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