Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
665 Weergaven

I dynamically add dynamic sizes and fields to the order details line based on the SKU configured for the product. However, due to the increasing number of dynamically generated custom fields, the loading speed will slow down when opening the view

V16

Avatar
Annuleer
Beste antwoord

✅ Root Cause:

  • Each field loads its own widget, logic, and access rules.
  • Excessive fields increase DOM complexity and RPC calls, reducing frontend performance.

✅ Solutions:

  1. Split Views:
    Use multiple notebook pages (tabs) to group fields logically.
    Example: Personal Info | Financial Info | Technical Info
  2. Use attrs with Conditions:
    Show fields only when relevant using conditional attributes.
    <field name="custom_field" attrs="{'invisible': [('type','=','company')]}"/>
  3. Disable Unused Fields:
    Remove rarely used custom fields from the main view and show via smart buttons or related actions.
  4. Load On-Demand (with widgets):
    For computed data, use widgets like statinfo or use kanban to summarize.
  5. Backend Optimization:
    Avoid computed fields that auto-recompute on load unless necessary.
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
jul. 25
2719
2
jun. 25
1046
0
mrt. 25
706
0
mrt. 25
688
0
jul. 25
1300