Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
181 Prikazi

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

Avatar
Opusti
Avtor Best Answer

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

J


Avatar
Opusti
Best Answer

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>


Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
avg. 25
72
3
avg. 25
154
1
avg. 25
392
1
jul. 25
752
2
jul. 25
879