diff options
| author | Romain Derie <rde@odoo.com> | 2019-06-26 09:25:47 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2019-06-26 17:07:29 +0000 |
| commit | bb81e4ccd7b0044bbe1ad45842a3f799ceac0838 (patch) | |
| tree | b97f7c89d8fcc6c57ba17e3f3bb69dbe4046632a /addons/website/tools.py | |
| parent | 47bbb504a89c4133cf16d3f9aff28e2c5823c771 (diff) | |
[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.
Closes #34396
Fixes #34308
Diffstat (limited to 'addons/website/tools.py')
0 files changed, 0 insertions, 0 deletions
