Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 this issue Sep 15, 2024 · 0 comments
Labels

Comments

@bunhin
Copy link

bunhin commented Sep 15, 2024

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

@bunhin bunhin added the bug label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant