Skip to content
Snippets Groups Projects
Commit 4e1f44fb authored by roen-odoo's avatar roen-odoo
Browse files

[FIX] mail: Onchange error after done & schedule next activity


Current behavior:
In any chatter, if you schedule an activity then use the "Done & schedule next" options you had an error if you try to modify some fields of the record linked to the chatter.
For example in CRM you couldn't modify the probability after using "Done & Schedule next"

Steps to reproduce:
-Go in CRM
-Go on a lead page
-In the chatter schedule an activity
-Click on mark done and then on Done & Schedule next
-Try to edit the probabilty field of the lead
-You get an error : Record does not exist or has been deleted. (Record: mail.activity(x,), User: xx)

opw-2648685

closes odoo/odoo#84614

Signed-off-by: default avatarAnh Thao PHAM <pta@odoo.com>
parent f629c261
Branches
Tags
No related merge requests found
......@@ -93,10 +93,11 @@ class ActivityMarkDonePopover extends Component {
/**
* @private
*/
_onClickDoneAndScheduleNext() {
this.activity.markAsDoneAndScheduleNext({
async _onClickDoneAndScheduleNext() {
await this.activity.markAsDoneAndScheduleNext({
feedback: this._feedbackTextareaRef.el.value,
});
this.trigger('reload', { keepChanges: true });
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment