This commit is contained in:
2026-11-08 17:43:44 +08:00
parent 974a1fb10b
commit 3b5af1e3a6
483 changed files with 590466 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
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()
activity_names = {
'account.return': self.env._("Tax Returns"),
'account.return.check': self.env._("Tax Return Checks"),
}
for activity in activities:
if name := activity_names.get(activity['model']):
activity |= {
'name': name,
'icon': modules.module.get_module_icon('accountant'),
'view_type': 'kanban',
}
return activities