Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
210 Vizualizări

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

Imagine profil
Abandonează
Autor

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

J


Cel mai bun răspuns

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>


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 25
171
0
aug. 25
78
1
aug. 25
407
1
iul. 25
757
2
iul. 25
882