<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2019 Akretion France (http://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_form" model="ir.ui.view">
    <field name="model">commission.result</field>
    <field name="inherit_id" ref="commission_simple.commission_result_form"/>
    <field name="arch" type="xml">
        <group name="main-right" position="inside">
                <field name="purchase_id" attrs="{'invisible': [('assign_type', '!=', 'agent')]}"/>
        </group>
    </field>
</record>


</odoo>
