<?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="view_move_line_form" model="ir.ui.view">
    <field name="model">account.move.line</field>
    <field name="inherit_id" ref="account.view_move_line_form"/>
    <field name="arch" type="xml">
        <notebook position="inside">
            <page name="commission" string="Commission" attrs="{'invisible': [('display_type', '!=', False)]}">
                <group name="commission_grp">
                    <field name="commission_base"/>
                    <label for="commission_rate"/>
                    <div name="commission_rate">
                        <field name="commission_rate" class="oe_inline"/> %
                    </div>
                    <field name="commission_amount"/>
                    <field name="commission_rule_id"/>
                    <field name="display_type" invisible="1"/>
                    <field name="company_currency_id" invisible="1"/>
                </group>
            </page>
        </notebook>
    </field>
</record>


</odoo>
