Adds the shared infrastructure for real-time multi-keyword search on portal list pages: - static/src/js/fp_portal_list_search.js — vanilla-JS IIFE that wires every input.o_fp_list_search to the container at the selector in its data-fp-target. On every keystroke, walks the container's direct children and toggles display: none based on whether each row's textContent contains all whitespace-tokenised keywords. Also wires .o_fp_sort_select dropdowns on every page EXCEPT Account Summary (scoped by .o_fp_account_summary closest-ancestor check) so the existing fp_portal_account_summary.js handler isn't doubled up. - views/fp_portal_macros.xml — new t-call macro fusion_plating_portal.fp_portal_list_controls that renders the filter pills + search input + sort dropdown strip in one block. Callers pass filters, sorts, active_filter, active_sort, search, url, extra_qs, target, result_total, clipped via t-set. - __manifest__.py — registers the new JS in web.assets_frontend (after fp_portal_account_summary.js). Version bumps 19.0.4.0.0 -> 19.0.4.1.0. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
97 lines
3.8 KiB
Python
97 lines
3.8 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
# Part of the Fusion Plating product family.
|
|
|
|
{
|
|
'name': 'Fusion Plating — Customer Portal',
|
|
'version': '19.0.4.1.0',
|
|
'category': 'Manufacturing/Plating',
|
|
'summary': 'Customer-facing portal for plating shops: online RFQ, job status, '
|
|
'CoC downloads, invoice access.',
|
|
'description': """
|
|
Fusion Plating — Customer Portal
|
|
================================
|
|
|
|
Part of the Fusion Plating product family by Nexa Systems Inc.
|
|
|
|
This module extends the Odoo portal with plating-specific customer-facing
|
|
features so a shop's customers can self-serve common requests:
|
|
|
|
* Online Request for Quote (RFQ) submission with drawing uploads
|
|
* Track production job status (received → in process → quality → shipped)
|
|
* Download Certificates of Conformance (CoC) for completed jobs
|
|
* Reference invoice numbers and tracking shipments
|
|
* Submit complaints and follow up on resolution
|
|
|
|
Design principles
|
|
-----------------
|
|
1. Extends, never modifies, the fusion_plating core.
|
|
2. Reuses Odoo's standard portal layout, breadcrumbs, and pager.
|
|
3. Theme-aware: respects portal light/dark theme via Bootstrap CSS variables.
|
|
4. No client-specific strings; all labels are translatable.
|
|
5. Works on both Odoo Community and Enterprise editions.
|
|
|
|
Copyright (c) 2026 Nexa Systems Inc. All rights reserved.
|
|
""",
|
|
'author': 'Nexa Systems Inc.',
|
|
'website': 'https://www.nexasystems.ca',
|
|
'maintainer': 'Nexa Systems Inc.',
|
|
'support': 'support@nexasystems.ca',
|
|
'license': 'OPL-1',
|
|
'price': 0.00,
|
|
'currency': 'CAD',
|
|
'depends': [
|
|
'fusion_plating',
|
|
'fusion_plating_configurator',
|
|
'portal',
|
|
'website',
|
|
'mail',
|
|
'sale_management',
|
|
'account',
|
|
'stock',
|
|
],
|
|
'data': [
|
|
'security/fp_portal_security.xml',
|
|
'security/ir.model.access.csv',
|
|
'data/fp_sequence_data.xml',
|
|
'views/fp_portal_shell.xml',
|
|
'views/fp_portal_macros.xml',
|
|
'views/fp_quote_request_views.xml',
|
|
'views/fp_portal_dashboard.xml',
|
|
'views/fp_portal_templates.xml',
|
|
'views/fp_portal_account_summary.xml', # NEW — Task 10
|
|
'views/fp_portal_configurator_templates.xml',
|
|
'views/fp_portal_breadcrumbs.xml',
|
|
'views/fp_sale_order_portal.xml',
|
|
'views/fp_menu.xml',
|
|
],
|
|
'assets': {
|
|
'web.assets_frontend': [
|
|
# Tokens MUST be first so every later file sees the variables.
|
|
'fusion_plating_portal/static/src/scss/_fp_portal_tokens.scss',
|
|
# Phase 1 — button system
|
|
'fusion_plating_portal/static/src/scss/fp_portal_buttons.scss',
|
|
# Phase 2 — badges, cards, stepper, dashboard layout
|
|
'fusion_plating_portal/static/src/scss/fp_portal_badges.scss',
|
|
'fusion_plating_portal/static/src/scss/fp_portal_cards.scss',
|
|
'fusion_plating_portal/static/src/scss/fp_portal_stepper.scss',
|
|
'fusion_plating_portal/static/src/scss/fp_portal_dashboard.scss',
|
|
'fusion_plating_portal/static/src/scss/fp_portal_timeline.scss',
|
|
'fusion_plating_portal/static/src/scss/fp_portal_sidebar.scss', # NEW — Task 5
|
|
# Catch-all legacy rules (last)
|
|
'fusion_plating_portal/static/src/scss/fusion_plating_portal.scss',
|
|
'fusion_plating_portal/static/src/js/fp_rfq_form.js',
|
|
'fusion_plating_portal/static/src/js/fp_portal_sidebar.js', # NEW — Task 5
|
|
'fusion_plating_portal/static/src/js/fp_portal_account_summary.js', # NEW — Task 10 fix
|
|
'fusion_plating_portal/static/src/js/fp_portal_list_search.js', # list search + sort
|
|
],
|
|
},
|
|
'demo': [
|
|
'data/fp_demo_portal_data.xml',
|
|
],
|
|
'installable': True,
|
|
'application': False,
|
|
'auto_install': False,
|
|
}
|