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

I am developing a module which adds fields to stock picking view.

However, fields appear outside the fields/sheet frame.

Any ideas on why this could be happening? Thanks


아바타
취소

can you paste part of the code ?

베스트 답변

Hello EM,

Please Try this. In this code, field will appear after the Source document(Origin).


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

    <field name="name">stock.picking.form.view.inherit</field>

    <field name="model">stock.picking</field>

    <field name="inherit_id" ref="stock.view_picking_form"/>

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

        <xpath expr="/form/sheet/group/group/field[@name='origin']" position="after">

            <field name="custom_field"/>

        </xpath>

    </field>

</record>


Hope this will helps you.

Thanks,


아바타
취소
작성자 베스트 답변

It was actually a mistake I made in the xpath expression.

It is as easy as always:    

<xpath expr="//group[@string='Locations']" position="before">

아바타
취소
관련 게시물 답글 화면 활동
1
2월 16
3813
4
5월 23
10652
1
1월 19
9681
0
10월 17
3532
3
7월 17
10670