-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed as not planned
Closed as not planned
Copy link
Labels
bugstalePR/Issue without recent activity, it'll be soon closed automatically.PR/Issue without recent activity, it'll be soon closed automatically.
Description
Module
web_ir_actions_act_view_reload
Describe the bug
When triggering a view reload with {"type": "ir.actions.act_view_reload",} it doesn't load the data that got written, just before returning the action
To Reproduce
Add a function like this to any model that exposes a name field to it's form view.
Name some record Before.
def handle_reload(self):
# Function to swap name anytime it's called.
if self.name == "Before":
self.name = "After"
else:
self.name = "Before
return {"type": "ir.actions.act_view_reload",}Steps to reproduce the behavior:
- Trigger the action
- Reload is triggered in js. Name displayed is still
Beforebut value in Record isafter(verify byodoo-bin shellor another browser tab) - Trigger action again. Name displayed is now
After. But value in record isBeforeagain.
Expected behavior
I expect, that the reload gets the state of the record after the action got run, not before.
Metadata
Metadata
Assignees
Labels
bugstalePR/Issue without recent activity, it'll be soon closed automatically.PR/Issue without recent activity, it'll be soon closed automatically.