<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

    <record id="view_ir_actions_server_form" model="ir.ui.view">
        <field name="model">ir.actions.server</field>
        <field name="inherit_id" ref="base.view_server_action_form" />
        <field name="arch" type="xml">
            <xpath expr="//page[@name='code']" position="after">
                <page
                    string="Sort Options"
                    name='page_sort'
                    autofocus="autofocus"
                    attrs="{'invisible': [('state', '!=', 'sort')]}"
                >
                    <group>
                        <field
                            name="sort_field_id"
                            attrs="{'required': [('state', '=', 'sort')]}"
                        />
                        <field name="sort_field_id_model" />
                    </group>
                    <group>
                        <field name="sort_line_ids" nolabel="1" colspan="2">
                            <tree editable="bottom">
                                <field name="sequence" widget="handle" />
                                <field name="field_id" />
                                <field name="field_name" />
                                <field name="desc" />
                            </tree>
                        </field>
                    </group>
                </page>
            </xpath>
        </field>
    </record>

</odoo>
