Skip to content

[FIX] portal_backend: add missing company fields in session_info and [FIX] portal_holidays: fix multi-company access for portal users#322

Closed
fw-bot-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-18.0-t-105066-ced-2627-fw
Closed

[FIX] portal_backend: add missing company fields in session_info and [FIX] portal_holidays: fix multi-company access for portal users#322
fw-bot-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-18.0-t-105066-ced-2627-fw

Conversation

@fw-bot-adhoc
Copy link
Copy Markdown
Contributor

[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

@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

@fw-bot-adhoc
Copy link
Copy Markdown
Contributor Author

@ced-adhoc @jcadhoc cherrypicking of pull request #314 failed.

stdout:

Auto-merging portal_backend/models/ir_http.py
CONFLICT (content): Merge conflict in portal_backend/models/ir_http.py

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @roboadhoc.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot-adhoc
Copy link
Copy Markdown
Contributor Author

@ced-adhoc @jcadhoc this forward port of #314 is awaiting action (not merged or closed).

5 similar comments
@fw-bot-adhoc
Copy link
Copy Markdown
Contributor Author

@ced-adhoc @jcadhoc this forward port of #314 is awaiting action (not merged or closed).

@fw-bot-adhoc
Copy link
Copy Markdown
Contributor Author

@ced-adhoc @jcadhoc this forward port of #314 is awaiting action (not merged or closed).

@fw-bot-adhoc
Copy link
Copy Markdown
Contributor Author

@ced-adhoc @jcadhoc this forward port of #314 is awaiting action (not merged or closed).

@fw-bot-adhoc
Copy link
Copy Markdown
Contributor Author

@ced-adhoc @jcadhoc this forward port of #314 is awaiting action (not merged or closed).

@fw-bot-adhoc
Copy link
Copy Markdown
Contributor Author

@ced-adhoc @jcadhoc this forward port of #314 is awaiting action (not merged or closed).

stdout:
Auto-merging portal_backend/models/ir_http.py
CONFLICT (content): Merge conflict in portal_backend/models/ir_http.py

stderr:
@mav-adhoc mav-adhoc force-pushed the 19.0-18.0-t-105066-ced-2627-fw branch from 8b2f4db to 690d248 Compare April 7, 2026 17:54
@fw-bot-adhoc
Copy link
Copy Markdown
Contributor Author

@ced-adhoc @jcadhoc this forward port of #314 is awaiting action (not merged or closed).

@jcadhoc jcadhoc closed this Apr 14, 2026
@fw-bot-adhoc fw-bot-adhoc deleted the 19.0-18.0-t-105066-ced-2627-fw branch April 21, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants