Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
201 Tampilan

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
Buang
Penulis

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

J


Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Agu 25
169
0
Agu 25
78
1
Agu 25
403
1
Jul 25
757
2
Jul 25
880