[IMP] partner_portal_extra_link: fix dependency and clean a view

This commit is contained in:
Stéphan Sainléger
2026-06-22 21:35:49 +02:00
parent c8d6b8f6c4
commit a213def5a1
3 changed files with 25 additions and 26 deletions

View File

@@ -35,15 +35,16 @@ and only if the portal user belongs to a company (has a `parent_id`).
and `wiki_homepage_url`.
2. The backend partner form view is extended to show these fields after the tags
field, hidden for individual contacts (non-company partners).
3. The portal layout template (`portal.portal_layout`) is extended to inject
clickable links into the "My Details" section. The links are read from
`user_id.partner_id.parent_id` (the portal user's parent company).
3. The portal template `portal.portal_contact` (sidebar contact section on
`/my/home`) is extended to inject clickable links from the portal user's
parent company (`user_id.partner_id.parent_id`). A `parent` variable is
captured via `t-set` to avoid repeated relation lookups.
## Dependencies
This module depends on:
- `base`: Odoo base module
- `portal`: Odoo portal module (provides the portal layout templates)
No external Python dependencies are required.