When I create a model with a one2many field, in its create or edit form this field appears as a tree view with an "add an item" at the end. So, How can I have that behavior in a normal tree view??, I mean, not in a one2many field, but for my whole model ?? Regards
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
You can add editable="bottom" to the tree tag.
This will create a new line in the tree view when you click the Create button.
<tree string="My Tree View" editable="bottom">
<field name="my_field_1"/>
<field name="my_field_2"/>
</tree>
I don't think you can make it behave like an "inline" tree-view.. but I might be wrong.
hi
If you are creating your on tree view.
<tree string="your_tree_view" editable="bottom">
<field name="field_name"/>
</tree>
OR<tree string="your_tree_view" editable="top">
<field name="field_name"/>
</tree>
If need you need this in already defined tree you then just inherit the view.
Other case you can edit it from the frond end as an admin
Activate the developer mode and "Click the Edit View".
Add the code in tree tag.
"<tree string="Events" editable="top" ................>
.................
</tree>
then its work fine.
Regards
NikhilKrishnan,
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
9
thg 6 23
|
12961 | ||
|
2
thg 1 22
|
3775 | ||
|
0
thg 6 21
|
1848 | ||
|
0
thg 2 21
|
2469 | ||
|
0
thg 2 21
|
4255 |
Odoo Customization Tips: http://learnopenerp.blogspot.com/