[FIX] project: change the default order used in project list/kanban view
Before this commit, the default order used in the project list/kanban view is only `sequence` but if all projects have the same sequence. This commit changes the default order to sort by `sequence`, `name` and `id` as it is defined in the python model. closes odoo/odoo#104986 X-original-commit: 25efb87f960380dac8093e018a3766bd5041cd0f Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com> Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -688,7 +688,7 @@
|
||||
<field name="name">project.project.tree</field>
|
||||
<field name="model">project.project</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree decoration-muted="active == False" string="Projects" multi_edit="1" sample="1">
|
||||
<tree decoration-muted="active == False" string="Projects" multi_edit="1" sample="1" default_order="sequence, name, id">
|
||||
<field name="sequence" optional="show" widget="handle"/>
|
||||
<field name="message_needaction" invisible="1"/>
|
||||
<field name="active" invisible="1"/>
|
||||
@@ -799,6 +799,7 @@
|
||||
on_create="project.open_create_project"
|
||||
action="action_view_tasks" type="object"
|
||||
sample="1"
|
||||
default_order="sequence, name, id"
|
||||
>
|
||||
<field name="display_name"/>
|
||||
<field name="partner_id"/>
|
||||
|
||||
Reference in New Issue
Block a user