Skip to content
Snippets Groups Projects
Commit 534f814f authored by Alexandre Kühn's avatar Alexandre Kühn
Browse files

[FIX] mail: no crash when scheduling activity outside of form view


Before this commit, when scheduling an activity from document
inspector, there was the following crash:

```
this.saveRecord is not a function
```

This happens because scheduling an activity necessarily reload the
chatter. Chatter is mostly in form view, but in documents the chatter
is shown in kanban. `saveRecord` does not exist, as this is a form
view-specific feature.

This commit solves the issue by not calling `saveRecord` if it
doesn't exist.

opw-3295227

closes odoo/odoo#120674

Related: odoo/enterprise#40775
Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
parent e489abef
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment