Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Live Chat

Entity: im_livechat.channel.member.history

Compute Method: _compute_help_status

Inputs Method Outputs
agent_histories = self.filtered(lambda h: h.livechat_member_type == "agent")
(self - agent_histories).help_status = None
for history in agent_histories:
            if history.channel_id.livechat_agent_requesting_help_history == history:
                history.help_status = "requested"
            elif history.channel_id.livechat_agent_providing_help_history == history:
                history.help_status = "provided"

Back to entity