chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

@@ -0,0 +1,14 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.http import request, route
from odoo.addons.website_sale.controllers.cart import Cart as WebsiteSaleCart
class Cart(WebsiteSaleCart):
@route()
def add_to_cart(self, *args, **kwargs):
"""Override to add plan_id to request context."""
if "plan_id" in kwargs:
request.update_context(plan_id=kwargs["plan_id"])
return super().add_to_cart(*args, **kwargs)