Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
10535 Visninger

In Openerp 7 Form Search view Group by Date Shows in the below Format:-

October 2013
November 2013
December 2013

How to change the date format in List view ? Group by.

In reports can use change date format using the sql query to_char(order_date, 'MM-DD-YYYY') as order_date,

But in the Form list view Group by how to change date format?

Thanks

Avatar
Kassér
Bedste svar

Hello,

Check with this may be it will help you or you can get idea

<filter string="Order Month" domain="[]" context="{'group_by':'date_order:day'}"/>

Avatar
Kassér

can i show weekday instead of :day it gave me error in context i want to show weekday abbr too

Bedste svar

Add a filter in your XML like this:

<record id="view_xxx_filter" model="ir.ui.view">

<field name="model">xxxxx</field>

<field name="arch" type="xml">

<search string="XXXX">

<field name="order_date"/>  

<group expand="0" string="Group By...">

<filter string="Date Order" icon="terp-personal" domain="[]" context="{'group_by':'order_date'}"/> 

</group>

</search>

</field>

</record>

Regards.

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
maj 18
8589
1
maj 16
8012
1
jul. 23
1851
2
apr. 21
15385
0
dec. 16
2514