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,13 @@
from odoo import models
class MailActivity(models.Model):
_inherit = 'mail.activity'
def action_open_document(self):
# OVERRIDE
# when opening the "View all activities", and opening a return, we actually want the kanban view of return checks
if self.res_model != 'account.return':
return super().action_open_document()
return self.env['account.return'].browse(self.res_id).action_open_account_return()