mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-22 01:12:04 +02:00
19.0 vanilla
This commit is contained in:
parent
5faf7397c5
commit
2696f14ed7
721 changed files with 220375 additions and 91221 deletions
|
|
@ -1,20 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, models, modules
|
||||
|
||||
|
||||
class Users(models.Model):
|
||||
_name = 'res.users'
|
||||
_inherit = ['res.users']
|
||||
class ResUsers(models.Model):
|
||||
_inherit = 'res.users'
|
||||
|
||||
@api.model
|
||||
def systray_get_activities(self):
|
||||
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(Users, self).systray_get_activities()
|
||||
activities = super()._get_activity_groups()
|
||||
for activity in activities:
|
||||
if activity['model'] != 'res.partner':
|
||||
continue
|
||||
activity['icon'] = modules.module.get_module_icon('contacts')
|
||||
activity['icon'] = modules.module.Manifest.for_addon('contacts').icon
|
||||
return activities
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue