From 85cbb070ad0223d76abff42532999d36f712f222 Mon Sep 17 00:00:00 2001 From: Nans Lefebvre Date: Mon, 13 May 2019 09:10:54 +0000 Subject: [PATCH] [FIX] mail: remove readonly on recommended next activity Fine-tuning of 463601a3849b473d5d0bcf5be11663d04d953d57. It does not make sense to be able to write on mail.activity.type using the related fields defined on mail.activity. But this field is not a related one, and it is necessary to be writable to make the 'recommended next activity' feature work at all. opw 1974236 closes odoo/odoo#33325 Signed-off-by: Nans Lefebvre (len) --- addons/mail/models/mail_activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/models/mail_activity.py b/addons/mail/models/mail_activity.py index 6342a2d359d..15bbeca6d3a 100644 --- a/addons/mail/models/mail_activity.py +++ b/addons/mail/models/mail_activity.py @@ -89,7 +89,7 @@ class MailActivity(models.Model): ('today', 'Today'), ('planned', 'Planned')], 'State', compute='_compute_state') - recommended_activity_type_id = fields.Many2one('mail.activity.type', string="Recommended Activity Type", readonly=True) + recommended_activity_type_id = fields.Many2one('mail.activity.type', string="Recommended Activity Type") previous_activity_type_id = fields.Many2one('mail.activity.type', string='Previous Activity Type', readonly=True) has_recommended_activities = fields.Boolean( 'Next activities available',