[FIX] mail: Fix traceback on immediate onchage after mark activity done
Currently, there is traceback when we make the activity as done and directly fire the onchange. Reproduce step: 1) Create an appraisal 2) Create an activity 3) Refresh the Page 4) Done the activity 5) Unpublished the Manager Feedback The 'onchange' action receives the ID of the activity that was marked as done and thus the 'Missing record' error. So in this commit, on done of the activity trigger refesh to reload the activity ID. closes odoo/odoo#63034 Task-id: 2357760 X-original-commit: 23d9bd0b7e43dcb431450664172fbcd409c9d62c Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
+3
-2
@@ -69,10 +69,11 @@ class ActivityMarkDonePopover extends Component {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_onClickDone() {
|
||||
this.activity.markAsDone({
|
||||
async _onClickDone() {
|
||||
await this.activity.markAsDone({
|
||||
feedback: this._feedbackTextareaRef.el.value,
|
||||
});
|
||||
this.trigger('reload');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user