summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorNasreddin (bon) <bon@odoo.com>2020-06-04 15:25:20 +0000
committerNasreddin (bon) <bon@odoo.com>2020-06-08 15:04:06 +0000
commitc503faab534bf23ec194424ac584d697f6b22874 (patch)
treeebda47156826be42e99ab09f9fad1223eb12699d /addons/web/static/src/js/views/basic/basic_renderer.js
parent315346ad28ad3ad54500cb285df6b36db03c404d (diff)
[FIX] base: User loses company access when merging the related contact
Issue - Create a second company - Create user with access to main and second company - Go to "Contacts" app - Edit contact of the new user, and under the "Sales & Purchases" tab, ensure that the company field is set - Create a new contact with same email of the new user - In list view, select both contact related to new user - Click on Action->Merge Selected Contacts, then merge contacts User has no more access to both companies, only company related to merged destination Contact/Partner. Cause All related companies are unliked from user, and instead overwrited with one company related of the merged destination Contact/Partner. Solution Instead of unlink all companies, we will only add the contact company to the allowed companies of the user. opw-2269397 closes odoo/odoo#52620 X-original-commit: e00b23b73f00fb24b2771ea8894031b35204e65e Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com> Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions