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

In pre-V7, it was possible for users to switch one2many fields views using small icons on top like those of the main view. I do not know how to get this functionality in v7.

I noted that many views include both <tree> and <form> in the <field> tag. Sale order line uses either tree or form view based in group, but in most other object, the form view is not used at all. Is it possible to allow users to edit using the form view through the web interface, possibly with an action button.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Update:

As per the comments below, it is not currently possible in OpenERP v7.0.


This feature is possible by adding mode attribute in one2many fields.

<field name="order_line" mode="tree,form">

or

<field name="child_ids" mode="kanban,tree">
Ảnh đại diện
Huỷ bỏ
Tác giả

This does not work in OpenERP 7.0; I got the Javascript exception Uncaught Error: View type 'form' is not supported in One2Many

You should define the form tag for the One2many field.

Tác giả

It is defined. I'm trying to modify the account.bank.statement form view which has form tag defined for the line_ids field. I think o2m forms are no longer supported in OpenERP 7.0. I did not seen any o2m forms in official addons (yet).

you are right, it is possible only to switch between tree and kanban views.

Tác giả

Thanks a lot for your help.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
8351
0
thg 11 23
1504
2
thg 11 18
13256
0
thg 3 15
4250
1
thg 3 15
8227