Skip to content

[FIX] OdooBot access error

Daniil Digtyar Vasilieva requested to merge FIX_partner_odoo_bot_company_ids into dev

Bug

With the new removal of user-partner duplication !83 (merged) we disabled access globally for the OdooBot, so if you are not in the main company and go to activities or message there won't show any from OdooBot or cause access error.

Fix implementation

This can be fixed of two ways, in the ir.rules hardcoding sharing of OdooBot or enable sharing a partner between all companies if there is no company_ids assigned to them. I implement the second one, meaning that we can share if needed always some parters between all companies if there is a case similar to the OdooBot, but we must make sure that company_ids in res.partner will be with the correct companies.

I also updated the ir.cron to remove the company_ids of the OdooBot partner to make sure that it shared between all companies. For some reason, this is implemented in the partner_multi_company installation. Related OCA PR

Edited by Daniil Digtyar Vasilieva

Merge request reports