Browse Source

APR 16: [FIX] Bug fixed 'activity_dashboard_mngmnt'

pull/331/merge
Cybrosys Technologies 2 weeks ago
parent
commit
91447bf954
  1. 9
      activity_dashboard_mngmnt/__init__.py
  2. 11
      activity_dashboard_mngmnt/__manifest__.py
  3. 7
      activity_dashboard_mngmnt/doc/RELEASE_NOTES.md
  4. 8
      activity_dashboard_mngmnt/static/src/js/activity_dashboard.js

9
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})

11
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 <http://www.gnu.org/licenses/>.
#
################################################################################
{
'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 <http://www.gnu.org/licenses/>.
#
################################################################################

7
activity_dashboard_mngmnt/doc/RELEASE_NOTES.md

@ -1,6 +1,11 @@
## Module <activity_dashboard_mngmnt>
#### 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

8
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);
}

Loading…
Cancel
Save