OCA / reporting-engine

Odoo Alternative Reporting Engine
https://odoo-community.org/project/tools-maintainers-30
GNU Affero General Public License v3.0
335 stars 795 forks source link

[v14] error state is null when clicking the breadcrumb in view displayed from kpi action the dashboard view seem null either #932

Open bunhin opened 2 months ago

bunhin commented 2 months ago

Module

kpi_dashboard

Describe the bug

in a kpi add an ir.action.act_windod that will display tree view of a model records make the shown value in the kpi tile, so the action will be shown in kpi tile when the ellipsis buttin i sclicked, then clik on the action, the tree view is displayed (target current or new), the breadcrumb link also shown in the view (i am using the view_id form core model, only modify the domain on the action definition), when the breadcrumb is clicked to go back to the dashboard view, the erro is popped up with trace:

Traceback: Error: state is null _getActionMenuItems@https://demo.../web/content/774-d9657b5/web.assets_backend.js:1662:534 _updateControlPanelProps@https://demo..../web/content/774-d9657b5/web.assets_backend.js:1368:56 _update@https://demo..../web/content/774-d9657b5/web.assets_backend.js:1363:118 update@https://demo..../web/content/774-d9657b5/web.assets_backend.js:1358:224

To Reproduce

Affected versions: V14

Steps to reproduce the behavior: in a kpi add an ir.action.act_windod that will display tree view of a model records make the shown value in the kpi tile, so the action will be shown in kpi tile when the ellipsis buttin i sclicked, then clik on the action, the tree view is displayed (target current or new), the breadcrumb link also shown in the view (i am using the view_id form core model, only modify the domain on the action definition), when the breadcrumb is clicked to go back to the dashboard view, the erro is popped up with trace:

  1. to define custom action to open a view (ir.action.act_window), view_id : try with sale order default tree view or others
  2. Go to the menu to display the dashboard
  3. click on ellipsis button in the tile (the three dot ...)
  4. The view will be displayed successfully, we can interact to pen the form view of the record as well
  5. Then go to the dashboard view by clicking the breadcrumb link or close x the tree view
  6. The error will happen for both clicking the the breadcrumb link or closing the tree view

Expected behavior: Clicking on breadcrumb or closing the popped up view, should not returning error and can go back to the calling dashboard view.

Please anyone help info if i do missing something . Thank you