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

Hello,

I have an object which has a field of one2many, it is displayed as a tree in the form, I want to add search view also, how please ?

 

 

Ảnh đại diện
Huỷ bỏ

Default search options in form view not available. other possible solution in Header form add related field (line field one2many field) and then add in header search view.

Tác giả

could you more explain with an example please

Tác giả Câu trả lời hay nhất

is it possible ?

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

It's not possible in standard, I think the best solution used in this case (a lot of one2many objects will be displayed within a form view)  is to use button to display the tree view of those objects like in customer view :

<div class="oe_right oe_button_box" >

    <button name="%(action_tree_of_one2many_object)d" string="Link to..." type="action" />
</div>

Ảnh đại diện
Huỷ bỏ