[FIX] mail: activity, crash when activity type is null
When activity_type_id is null on an activity marking it as 'done and schedule schedule next' crashed OPW-1928989 closes odoo/odoo#30522
This commit is contained in:
@@ -265,7 +265,7 @@ var Activity = AbstractActivityField.extend({
|
||||
$popover.find('#activity_feedback').val(self.feedbackValue[activity_id]);
|
||||
$popover.on('click', '.o_activity_popover_done_next', function () {
|
||||
var feedback = _.escape($popover.find('#activity_feedback').val());
|
||||
var previous_activity_type_id = $popover_el.data('previous-activity-type-id');
|
||||
var previous_activity_type_id = $popover_el.data('previous-activity-type-id') || false;
|
||||
self._markActivityDone(activity_id, feedback)
|
||||
.then(self.scheduleActivity.bind(self, previous_activity_type_id));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user