Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
294 Lượt xem

Hi!
By default, sales (quotes) are sorted by sale state in the kanban view. 

Unfortunatly, the order is not logical: in french, it's (from left to right: new quote, validaded quote, sent quote). I would prefer: new, sent, validated !!
I search for hours and it's not possible. I tried to rename / change the order of the default stats but it's locked or change nothing.

I also think about add a "tag" and the sort the kanban by tag... but it's a bit a lost of time to set a tag on each quote just to order them...

Thks for your help (note: i'm not a Python developer ;-)... just a normal end user)

Jean

Ảnh đại diện
Huỷ bỏ
Tác giả

Thks! Unfortunatly, I'm on the SaaS version...
I don't have access to the XML files

J


Tác giả

Thks for the suggestions @Cybrosys Techno Solutions Pvt.Ltd. 

With Odoo Studio, I can only choose the GROUPBY in the Kanban view (I set it to STAGE) but the sort-order is for the sales under each stage... not for the stage themself.

I think I will create an automation on each sales step change to set a basic TAG and then change the Kanban view to group-by the TAGS.

A crazy workarround... but I hope it will do the job.

Hi Jean,

What you’re running into is a common limitation of Odoo’s Kanban view: by default, it sorts records by the stage order, not alphabetically, and the stage order is defined in the Stage configuration. Here’s how you can fix it without Python:

1. Adjust the Stage Sequence

Go to Sales > Configuration > Quotation Stages (or Sales > Configuration > Sales Teams > Stages depending on your version).

You’ll see your stages: New, Sent, Validated (or in French: Nouveau, Envoyé, Validé).

Each stage has a Sequence number.

Lower numbers appear left in Kanban.

Set the sequence so it matches your desired order:

New / Nouveau → 1

Sent / Envoyé → 2

Validated / Validé → 3

Save and refresh the Kanban view.

This should reorder the Kanban columns exactly how you want, without touching tags or code.

Câu trả lời hay nhất

Hi,

In Odoo, the order of the Kanban columns comes from the internal values of the state field (draft, sent, sale, …).

That means the system doesn’t use the French labels you see, but the technical names in the database — which is why the order looks strange.


Unfortunately, just renaming or translating the states will not change the order.


The only ways to fix it are:


    With Odoo Studio: customize the Kanban view and reorder the columns the way you want.


    With development: a developer can change the order of the states in the code (not possible directly from the interface).


So, without Studio or a little technical help, it’s not possible to change the sequence.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Odoo uses the sequence of selection values in the state field to define the default column order in the Kanban view.

The Kanban grouping is based on this underlying state field (a selection field defined in Python).

Since the order of selection values is defined in the Odoo sale.order model code, simply renaming or translating the states does not affect the column order.


<record id="view_order_kanban_inherit" model="ir.ui.view">

    <field name="name">sale.order.kanban.inherit</field>

    <field name="model">sale.order</field>

    <field name="inherit_id" ref="sale.view_quotation_tree_with_onboarding"/>

    <field name="arch" type="xml">

        <!-- Override grouping order by setting sequence -->

        <xpath expr="//kanban" position="attributes">

            <attribute name="default_group_by">state</attribute>

            <attribute name="groups_order">draft,sent,sale</attribute>

        </xpath>

    </field>

</record>


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 25
248
0
thg 8 25
140
1
thg 8 25
459
1
thg 7 25
811
2
thg 7 25
925