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

When you click on a record in a tree view, you switch to the form view of that record in a view mode. You can then click edit, and edit the form.

Can you put a tag in the XML or something to make the form view automatically open in edit mode?

It is not a huge problem to click edit, but it would be faster for user input to get rid of that extra click.

Thanks.

아바타
취소
베스트 답변

You can use editable="bottom" in the tree view.

<field name="pf_nominee_id" nolabel="1">
        <tree string=' PF Details' editable="bottom"> 
                <field name='pf_nominee_name'/>
                <field name='pf_nominee_dob'/>
                <field name='pf_nominee_relation'/>
                <field name="pf_nominee_address"/> 
                <field name="pf_nominee_percentage"/>
        </tree>
 </field>

Here pf_nominee_id is the one2many field.

아바타
취소
작성자

This would allow the user to add items to the tree view wouldn't it? I don't want the user to be able to add records, just edit the records that have already been created.

Have you used this code in your production ?, this will allow user to edit the one2many field and adding the record is default functionality.I just answer your question that how to avoid the edit form and do the editing in the tree view. Thankyou.

The form will probably have more fields than the tree view. This isn't a workable solution in most cases.

관련 게시물 답글 화면 활동
1
9월 23
4786
1
9월 21
5545
2
6월 22
4175
4
12월 23
20845
0
9월 21
2417