コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
10480 ビュー

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

アバター
破棄
最善の回答

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'}"/>

アバター
破棄

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

最善の回答

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.

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 18
8565
1
5月 16
7982
1
7月 23
1819
2
4月 21
15339
0
12月 16
2484