From 91447bf9549530ed1fbfb2dab7f186773e1a4884 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Wed, 16 Apr 2025 12:39:42 +0530 Subject: [PATCH] APR 16: [FIX] Bug fixed 'activity_dashboard_mngmnt' --- activity_dashboard_mngmnt/__init__.py | 9 +++++++++ activity_dashboard_mngmnt/__manifest__.py | 11 +++++++---- activity_dashboard_mngmnt/doc/RELEASE_NOTES.md | 7 ++++++- .../static/src/js/activity_dashboard.js | 8 +------- 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/activity_dashboard_mngmnt/__init__.py b/activity_dashboard_mngmnt/__init__.py index b2744bb0c..0a8baae35 100644 --- a/activity_dashboard_mngmnt/__init__.py +++ b/activity_dashboard_mngmnt/__init__.py @@ -20,3 +20,12 @@ # ################################################################################ from . import models + +def post_init_hook(env): + rec = env.ref("mail.mail_activity_rule_user") + rec.write({'perm_read': True, 'perm_create': True}) + +def uninstall_hook(env): + rec = env.ref("mail.mail_activity_rule_user") + rec.write({'perm_read': False, 'perm_create': False}) + diff --git a/activity_dashboard_mngmnt/__manifest__.py b/activity_dashboard_mngmnt/__manifest__.py index 2c8b19ac8..81d8aa035 100644 --- a/activity_dashboard_mngmnt/__manifest__.py +++ b/activity_dashboard_mngmnt/__manifest__.py @@ -16,12 +16,9 @@ # # You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE # (AGPL v3) along with this program. -# If not, see . -# -################################################################################ { 'name': 'Activity Management', - 'version': '17.0.1.0.0', + 'version': '17.0.1.0.1', 'category': 'Extra Tools', 'summary': """Dashboard for streamlined management of all activities.""", 'description': """Simplify activity management with a comprehensive @@ -49,7 +46,13 @@ }, 'images': ['static/description/banner.jpg'], 'license': 'AGPL-3', + 'post_init_hook': 'post_init_hook', + 'uninstall_hook': 'uninstall_hook', 'installable': True, 'auto_install': False, 'application': True, + } +# If not, see . +# +################################################################################ diff --git a/activity_dashboard_mngmnt/doc/RELEASE_NOTES.md b/activity_dashboard_mngmnt/doc/RELEASE_NOTES.md index 1f6bb1f49..4b4b4753c 100644 --- a/activity_dashboard_mngmnt/doc/RELEASE_NOTES.md +++ b/activity_dashboard_mngmnt/doc/RELEASE_NOTES.md @@ -1,6 +1,11 @@ ## Module -#### 27.12.2021 +#### 27.12.2024 #### Version 17.0.1.0.0 ##### ADD - Initial commit for Activity Management + +#### 10.04.2025 +#### Version 17.0.1.0.1 +##### UPDT +- Updated the record rule for the mail.activity model diff --git a/activity_dashboard_mngmnt/static/src/js/activity_dashboard.js b/activity_dashboard_mngmnt/static/src/js/activity_dashboard.js index 4fb7ce62e..48053929c 100644 --- a/activity_dashboard_mngmnt/static/src/js/activity_dashboard.js +++ b/activity_dashboard_mngmnt/static/src/js/activity_dashboard.js @@ -45,7 +45,7 @@ export class ActivityDashboard extends Component { self.planned_activity=planned_activity self.today_activity=today_activity self.overdue_activity=overdue_activity - self.activity_type=await self.orm.call('mail.activity.type', + self.activity_type = await self.orm.call('mail.activity.type', 'search_count', [], {domain:[]}); } @@ -65,7 +65,6 @@ export class ActivityDashboard extends Component { view_mode: 'tree,form', domain: [['active', 'in', [true,false]]], views: [[false, 'list'], [false, 'form']], - view_mode: 'form', target: 'current' }, options); } @@ -85,7 +84,6 @@ export class ActivityDashboard extends Component { domain: [['state', '=', 'planned']], view_mode: 'tree,form', views: [[false, 'list'], [false, 'form']], - view_mode: 'form', target: 'current' }, options); } @@ -105,7 +103,6 @@ export class ActivityDashboard extends Component { domain: [['state', '=', 'done'],['active','in',[true,false]]], view_mode: 'tree,form', views: [[false, 'list'], [false, 'form']], - view_mode: 'form', target: 'current' }, options); } @@ -125,7 +122,6 @@ export class ActivityDashboard extends Component { domain: [['state', '=', 'today']], view_mode: 'tree,form', views: [[false, 'list'], [false, 'form']], - view_mode: 'form', target: 'current' }, options); }/** @@ -144,7 +140,6 @@ export class ActivityDashboard extends Component { domain: [['state', '=', 'overdue']], view_mode: 'tree,form', views: [[false, 'list'], [false, 'form']], - view_mode: 'form', target: 'current' }, options); } @@ -163,7 +158,6 @@ export class ActivityDashboard extends Component { res_model: 'mail.activity.type', view_mode: 'tree,form', views: [[false, 'list'], [false, 'form']], - view_mode: 'form', target: 'current' }, options); }