<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2024 Akretion France (https://www.akretion.com)
  @author Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
-->

<odoo>

<record id="commission_result_tree" model="ir.ui.view">
    <field name="model">commission.result</field>
    <field name="inherit_id" ref="commission_simple.commission_result_tree"/>
    <field name="arch" type="xml">
        <field name="assign_type" position="attributes">
            <attribute name="decoration-danger">assign_type == 'agent'</attribute>
        </field>
    </field>
</record>



<record id="commission_result_search" model="ir.ui.view">
    <field name="model">commission.result</field>
    <field name="inherit_id" ref="commission_simple.commission_result_search"/>
    <field name="arch" type="xml">
        <filter name="user" position="after">
            <filter name="agent" domain="[('assign_type', '=', 'agent')]" string="Agent"/>
        </filter>
    </field>
</record>

</odoo>
