[ADD] server_action_sort : module to mass sort items (One2many) of any models, by any criterias

This commit is contained in:
Sylvain LE GAL
2023-12-23 21:05:01 +01:00
parent 81dfd93c8a
commit f57895af76
25 changed files with 1086 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?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>