mirror of
https://github.com/bringout/oca-ocb-mail.git
synced 2026-04-20 17:02:00 +02:00
19.0 vanilla
This commit is contained in:
parent
5df8c07b59
commit
daa394e8b0
2114 changed files with 564841 additions and 299642 deletions
|
|
@ -4,16 +4,15 @@
|
|||
from odoo import api, models, _
|
||||
|
||||
|
||||
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 systray name of mailing.mailing from "Mass Mailing"
|
||||
to "Email Marketing".
|
||||
"""
|
||||
activities = super(Users, self).systray_get_activities()
|
||||
activities = super()._get_activity_groups()
|
||||
for activity in activities:
|
||||
if activity.get('model') == 'mailing.mailing':
|
||||
activity['name'] = _('Email Marketing')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue