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

Hi,

by adding form in your one2many field like this


<fields name="your_field">

<form>

write your fields

.

.

.

.


</form>

</field>

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

use the concept of context like:

pass the context in the form view:

<field name="an_one2many_field_ids"  context="{'only_with_tree': true}">

collect the context in the tree view for  specific fields:

 <field name="my_fields" invisible="context.get('only_with_tree', false)"/>

hope this may hep in your case.


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