[FIX] portal_backend: add missing company fields in session_info and [FIX] portal_holidays: fix multi-company access for portal users #322
+60
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

[FIX] portal_backend: add missing company fields in session_info
Portal users with multi-company access got JS errors when switching companies
due to missing child_ids, parent_id and disallowed_ancestor_ companies fields in session_info.
Align implementation with Odoo core.
[FIX] portal_holidays: add ir.rule for multi-company hr.leave.type access
Portal backend users with multi-company access were getting access errors
when trying to access the Holidays app due to hr.leave.type having a global multi-company rule
that restricts access based on company_ids.
Added specific ir.rule for group_portal_backend_holiday allowing access to time off types
without company or belonging to user's companies.
Forward-Port-Of: #314