15 lines
535 B
Python
15 lines
535 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.http import request
|
|
|
|
from odoo.addons.website_sale.controllers import main
|
|
|
|
|
|
class WebsiteSaleWishlist(main.WebsiteSale):
|
|
|
|
def _get_additional_shop_values(self, values):
|
|
""" Hook to update values used for rendering website_sale.products template """
|
|
vals = super()._get_additional_shop_values(values)
|
|
vals['products_in_wishlist'] = request.env['product.wishlist'].current().product_id.product_tmpl_id
|
|
return vals
|