-
- Downloads
[FIX] website_sale: avoid adding website on customer when not needed
Before this commit, when an address would be edited or created from checkout, we would always add a website_id on it. (values_postprocess -> _checkout_form_save) That would be incorrect if the website has not 'specific user account' enabled. It would lead to an error as the user would not be able to connect to another website. Indeed, the billing address is stored on the partner directly. Since the res.user website_id is a related to the partner one, the user would then be restricted to that website. Fixes https://github.com/odoo/odoo/issues/34308 closes odoo/odoo#34396 Signed-off-by:Jérémy Kersten (jke) <jke@openerp.com>
No related branches found
No related tags found
Showing
- addons/website/tests/test_qweb.py 8 additions, 45 deletionsaddons/website/tests/test_qweb.py
- addons/website/tools.py 60 additions, 0 deletionsaddons/website/tools.py
- addons/website_sale/controllers/main.py 3 additions, 1 deletionaddons/website_sale/controllers/main.py
- addons/website_sale/tests/test_sale_process.py 29 additions, 1 deletionaddons/website_sale/tests/test_sale_process.py
- addons/website_sale/tests/test_website_sale_pricelist.py 1 addition, 7 deletionsaddons/website_sale/tests/test_website_sale_pricelist.py
- odoo/tools/misc.py 11 additions, 0 deletionsodoo/tools/misc.py
Loading
Please register or sign in to comment