Browse Source

Sep 23: [FIX] Bug Fixed 'activity_dashboard_mngmnt'

17.0
Risvana Cybro 6 hours ago
parent
commit
42ffe41bc9
  1. 3
      activity_dashboard_mngmnt/__init__.py
  2. 8
      activity_dashboard_mngmnt/__manifest__.py
  3. 5
      activity_dashboard_mngmnt/doc/RELEASE_NOTES.md
  4. 2
      activity_dashboard_mngmnt/models/mail_activity.py

3
activity_dashboard_mngmnt/__init__.py

@ -21,9 +21,12 @@
################################################################################ ################################################################################
from . import models from . import models
def post_init_hook(env): def post_init_hook(env):
rec = env.ref("mail.mail_activity_rule_user") rec = env.ref("mail.mail_activity_rule_user")
rec.write({'perm_read': True, 'perm_create': True}) rec.write({'perm_read': True, 'perm_create': True})
activities = env['mail.activity'].search([('state', '=', False)])
activities._compute_state()
def uninstall_hook(env): def uninstall_hook(env):
rec = env.ref("mail.mail_activity_rule_user") rec = env.ref("mail.mail_activity_rule_user")

8
activity_dashboard_mngmnt/__manifest__.py

@ -16,9 +16,12 @@
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE # You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program. # (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
{ {
'name': 'Activity Management', 'name': 'Activity Management',
'version': '17.0.1.0.1', 'version': '17.0.1.0.2',
'category': 'Extra Tools', 'category': 'Extra Tools',
'summary': """Dashboard for streamlined management of all activities.""", 'summary': """Dashboard for streamlined management of all activities.""",
'description': """Simplify activity management with a comprehensive 'description': """Simplify activity management with a comprehensive
@ -53,6 +56,3 @@
'application': True, 'application': True,
} }
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################

5
activity_dashboard_mngmnt/doc/RELEASE_NOTES.md

@ -9,3 +9,8 @@
#### Version 17.0.1.0.1 #### Version 17.0.1.0.1
##### UPDT ##### UPDT
- Updated the record rule for the mail.activity model - Updated the record rule for the mail.activity model
#### 16.09.2025
#### Version 17.0.1.0.2
##### BUG_FIX
- Updated the post_init_hook in the model

2
activity_dashboard_mngmnt/models/mail_activity.py

@ -110,4 +110,4 @@ class MailActivity(models.Model):
return { return {
'model': activity.res_model, 'model': activity.res_model,
'res_id': activity.res_id 'res_id': activity.res_id
} }
Loading…
Cancel
Save