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

I inherited form view and want to put new field inside that fields group after those fields that are inside that group. The problem is that group defined in original form does not have name, so I don't see a way to give correct path where my field should be located. For example let say there is such form with this group defined:

   ...
    <group>
        <field name="first"/>
        <field name="second"/>
    </group>
    ...

So if I inherit that form and try something like this:

<field name="arch" type="xml>
    <field name="second" position="after"/>
     <field name="third"/>
</field>

Using such approach will place my field after group which makes not properly lined with those other fields (for example it goes out bellow upper field values (both label and field). It looks like this:

     label_of_first | first
    label_of_second | second
                     label_of_third | third
아바타
취소
베스트 답변

You should use XPath Element.

See Other Links,

xpath in openerp 7

Hope It work for you,

아바타
취소
작성자

I can use xpath, but I need to specify in which group I want to place my fields. The problem is, that given group do not have name, it's nameless. So is there any way to show where that group is located without knowing it's name??

I use xpath and bumped into the exact same problem, but no solution yet. Does anyone have new light on this subject?

관련 게시물 답글 화면 활동
4
12월 21
31036
2
3월 15
8212
3
3월 15
5854
1
11월 24
930
1
10월 24
975