fix(portal): override stock /my/home with FP rich dashboard

The custom dashboard at fusion_plating_portal was rendering a 6-card
view at /my/home, but a method-name mismatch left the parent
portal.CustomerPortal.home() route active instead. Rename the
override to home() so Python MRO does the override naturally, and
add CLAUDE.md Critical Rule 16 documenting the gotcha so future
controller-override work doesn't trip on it.

Version bump: 19.0.2.2.0 -> 19.0.2.3.0.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-17 02:35:52 -04:00
parent 9ebf89bde2
commit 655b767127
3 changed files with 65 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ class FpCustomerPortal(CustomerPortal):
auth='user',
website=True,
)
def portal_my_home_dashboard(self, **kw):
def home(self, **kw):
partner = request.env.user.partner_id
commercial = partner.commercial_partner_id