콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
12328 화면

I tried to modify kanban element adding more attributes to it, but it gives me this error:

2014-01-02 14:22:23,653 23604 ERROR test2 openerp.addons.base.ir.ir_ui_view: <string>:1:0:ERROR:RELAXNGV:RELAXNG_ERR_NOELEM: Expecting an element , got nothing

My view:

    <record model="ir.ui.view" id="crm_case_kanban_view_leads_inherit">
        <field name="name">CRM - Leads Kanban Inherit</field>
        <field name="model">crm.lead</field>
        <field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
        <field name="arch" type="xml">
            <kanban default_group_by="stage_id" position="replace">
                <kanban default_group_by="stage_id" edit="false" quick_create="false"/>
            </kanban>
        </field>
    </record>
아바타
취소
베스트 답변

Hello Andrius, you can access the attributes of an element by using the position="attributes" syntax. See if the following works for you:

    <record model="ir.ui.view" id="crm_case_kanban_view_leads_inherit">
        <field name="name">CRM - Leads Kanban Inherit</field>
        <field name="model">crm.lead</field>
        <field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
        <field name="arch" type="xml">
            <kanban position="attributes">
                <attribute name="edit">false</attribute>
                <attribute name="quick_create">false</attribute>
            </kanban>
        </field>
    </record>
아바타
취소
관련 게시물 답글 화면 활동
2
11월 22
10455
1
5월 21
6776
2
5월 20
5877
View inheritance 해결 완료
1
3월 20
3543
1
2월 19
6841