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

Hello all,

We have here a new pivot table which is defined with the xml below. Note the "interval='week'" in it.

For each column (each week), what is the first day of the week?

Can we change the first day of the week?


XML

<record id="view_account_invoice_report_hebdo_graph_vtm2" model="ir.ui.view">
         <field name="name">account.invoice.report.hebdo.graph.vtm2</field>
         <field name="model">account.invoice.report.vtm2</field>
         <field name="arch" type="xml">
             <graph string="Invoices Analysis" type="pivot">
                 <field name="fiscal_position" type="row"/>
                 <field name="date" interval="week" type="col"/>
                 <field name="price_total" type="measure"/>
             </graph>
         </field>
    </record>


Image




アバター
破棄
著作者 最善の回答

I created a new filter on the invoice tree view. Invoices are now grouped by week.

Since the invoice with the date 2017-03-05 (a sunday) is in the week W9;

Since the invoice with the date 2017-03-06 (a monday) is in the week W10;

Then Odoo seems to consider monday as the first day of the week.

One question persists : could we change this comportment to get sunday as the first day of the week?


Image





アバター
破棄
関連投稿 返信 ビュー 活動
3
1月 24
2320
1
7月 24
29
2
8月 23
2111
0
3月 20
1854
1
12月 19
4531