20 lines
536 B
Python
20 lines
536 B
Python
from odoo import api, models, modules
|
|
|
|
|
|
class ResUsers(models.Model):
|
|
_inherit = 'res.users'
|
|
|
|
@api.model
|
|
def _get_activity_groups(self):
|
|
activities = super()._get_activity_groups()
|
|
|
|
for activity in activities:
|
|
if activity['model'] == 'account.return':
|
|
activity |= {
|
|
'name': self.env._("Tax Returns"),
|
|
'icon': modules.module.get_module_icon('account'),
|
|
'view_type': 'kanban',
|
|
}
|
|
|
|
return activities
|