Odoo18-Base/addons/bus/models/ir_attachment.py
2025-01-06 10:57:38 +07:00

12 lines
292 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class IrAttachment(models.Model):
_name = "ir.attachment"
_inherit = ["ir.attachment", "bus.listener.mixin"]
def _bus_channel(self):
return self.env.user._bus_channel()