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

Odoo v13


Model1:

author = fields.Many2one('model2', 'Author')

name = fields.Char("Name")


I want to have in tree view button which string will be "name" field. If we click on it then form of author will be shown.


...

<tree>

    <button name="%(my_action)d" class="btn-link" type"action">

        ??????

    </button>

</tree>

...

my_action show form so its ok, but how to create button string based on field?

  

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
1860
1
thg 2 17
5569
1
thg 3 15
4237
1
thg 3 15
16036
4
thg 11 24
13541