Add the missing portal layer for subscription_oca, modelled on the portal of the OCA contract module: - sale.subscription inherits portal.mixin; access_url resolves to /my/subscriptions/<id> - read-only ACLs (base.group_portal) on subscription, line, stage and template models, with record rules restricting both subscription and lines to the user's own commercial partner - CustomerPortal extension: home counter, paginated and sortable list, detail page with lines, totals and a portal chatter - related invoices are listed only when posted and actually readable by the visitor, since subscription_oca creates them in sudo - /my home entry with a recurring-cycle icon (circular arrows around a calendar, matching the portal icon palette) - 13 tests, fr.po translation catalog Chatter headings carry mb-4: the frontend portal chatter paints an opaque sticky bar 15px above its container, which would otherwise clip the heading (same overlap exists on core portal pages, hidden behind their taller h3). Portal body loop variables avoid the names `invoice` and `subscription`: qweb renders a t-call body before the layout it calls in the same values dict, so top-level loop variables leak into the breadcrumb context where account's portal_breadcrumbs template tests t-if="invoice".
2 lines
32 B
Python
2 lines
32 B
Python
from . import sale_subscription
|