<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2019-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="res_config_settings_view_form" model="ir.ui.view">
    <field name="name">commission.res.config.settings.form</field>
    <field name="model">res.config.settings</field>
    <field name="inherit_id" ref="account.res_config_settings_view_form" />
    <field name="arch" type="xml">
        <xpath expr="//div[@id='analytic']" position="after">
            <h2>Commissions</h2>
            <div class="row mt16 o_settings_container" id="commission_simple">
                <div class="col-12 col-lg-12 o_setting_box" id="commission_simple-settings">
                    <div class="o_setting_left_pane" />
                    <div class="o_setting_right_pane">
                        <div class="row" id="commission_product_id">
                            <label for="commission_product_id" class="col-md-5" />
                            <field name="commission_product_id" context="{'default_type': 'service', 'default_purchase_ok': True, 'default_sale_ok': False, 'default_available_in_pos': False, 'default_purchase_method': 'purchase'}"/>
                        </div>
                        <div class="row" id="commission_po_config">
                            <label for="commission_po_config" class="col-md-5" string="Purchase Order"/>
                            <field name="commission_po_config" />
                        </div>
                    </div>
                </div>
            </div>
        </xpath>
    </field>
</record>


</odoo>
