Skip to content
Snippets Groups Projects
Commit e0feda46 authored by Valentin Chevalier's avatar Valentin Chevalier
Browse files

[FIX] website_sale: ensure lang and website_id on partner creation


by using the `request.website` context

closes odoo/odoo#88374

Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
parent 42f7bc02
No related branches found
No related tags found
No related merge requests found
......@@ -1289,6 +1289,7 @@ class WebsiteSale(http.Controller):
:param dict custom_values: Optional custom values for the creation or edition.
:return int: The id of the partner created or edited
"""
request.update_env(context=request.website.env.context)
values = self.values_preprocess(partner_details)
# Ensure that we won't write on unallowed fields.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment