Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3681 Lượt xem

In my module i try to regroup the date field by day, but when trying to upgrade the module an Invalid XML for view error appear:

This is the part of XML that generate the error (:year):


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

    <field name="name">test.base.graph.view1</field>

    <field name="model">test.base</field>

    <field name="type">graph</field>

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

            <graph string="contacts" type="bar" >

                    <field name="create_date:year" type="row" group="False" />

                    <field name="name" type="col"/>

            </graph>

        </field>

</record>


this is the OpenERP V7 documentation that shows the datetime attribute : https://doc.odoo.com/trunk/web_graph/ 

Ảnh đại diện
Huỷ bỏ

not sure that it will do the same thing, but interval="year" maybe could help you ?? Let us know...

Tác giả

It's doesn't work, i think that this instruction is not supported in XML version of OpenERP V7.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 15
3028
1
thg 5 15
4023
0
thg 4 15
4474
0
thg 3 15
3251
0
thg 5 15
3321