Files
enterprise/account_reports/models/mail_activity.py
T
2024-04-28 11:43:49 +08:00

14 lines
373 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class AccountTaxReportActivity(models.Model):
_inherit = "mail.activity"
def action_open_tax_report(self):
self.ensure_one()
move = self.env['account.move'].browse(self.res_id)
return move.action_open_tax_report()