Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
162 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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

J


Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 25
65
3
srp 25
152
1
srp 25
386
1
čvc 25
748
2
čvc 25
876