mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-21 04:51:59 +02:00
18 lines
628 B
Python
18 lines
628 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import api, models, modules
|
|
|
|
|
|
class ResUsers(models.Model):
|
|
_inherit = 'res.users'
|
|
|
|
@api.model
|
|
def _get_activity_groups(self):
|
|
""" Update the systray icon of res.partner activities to use the
|
|
contact application one instead of base icon. """
|
|
activities = super()._get_activity_groups()
|
|
for activity in activities:
|
|
if activity['model'] != 'res.partner':
|
|
continue
|
|
activity['icon'] = modules.module.Manifest.for_addon('contacts').icon
|
|
return activities
|