Skip to Content
Menu
This question has been flagged
1 Reply
1575 Views

Hi,


I'm using default_group_by="state" to group quotation, but the order of the columns seems random.


How do I change the order of the columns?


I want to go from this:




To something like this:


Avatar
Discard
Best Answer

They are not random, but the alphabetic order of the field value in DB ('canceled', 'darft', 'sale', 'sent'.
('draft', 'Quotation'),
('sent', 'Quotation Sent'),
('sale', 'Sales Order'),
('cancel', 'Cancelled'),
to change the order, you shall change the fields.Selection defination to something like:
('1draft', 'Quotation'),
('2sent', 'Quotation Sent'),
('3sale', 'Sales Order'),
('4cancel', 'Cancelled'),

Avatar
Discard