summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/notification.xml
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2019-12-30 16:24:20 +0000
committerDamien Bouvy <dbo@odoo.com>2020-01-02 13:31:28 +0000
commitbd5305a51b9a264b971961aebbdc3e79590e4ad9 (patch)
tree49587f7ddc725ae9136544f7804350c11c733a91 /addons/web/static/src/xml/notification.xml
parent7757a63fc24cbe84016cb68ad8b1a8ca54006fd4 (diff)
[FIX] base: better multi-company rules for partners
Commit d86c2c5883 removed the multi-company partner rule because it interfered with the users rule. Indeed, interference between the user's default company and its corresponding partner's company made it possible to have users that were basically unselectable in relational fields if you were not viewing more than one company at the same time. However, this generates a lot of frustrations and tickets for Odoo users, since having everything shared by default is annoying and a clear departure from the expected behaviour. This commit tries to mitigates this fix's side-effects by re-introducing the multi-company rules but by not applying it to partners who are linked to a non-share user (basically, any partner who has a user that is not a portal user). That way, customers and vendors remain filtered by the multi-company rules and only partners of internal users bypass the rule. This is still a side-effect, and might raise a few eyebrows (why is this partner visible even though it is in another company?), but the trade-off seems to be worth it since it fixes the original issue with a far smaller behaviour change. Fixes #41720. closes odoo/odoo#42592 X-original-commit: 2390ba60b8bd624daaea2e6d4e3fd85ef1b1faeb Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/notification.xml')
0 files changed, 0 insertions, 0 deletions