Skip to Content
Menu
This question has been flagged
2794 Views

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?

  

Avatar
Discard
Related Posts Replies Views Activity
1
May 24
1712
1
Feb 17
5447
1
Mar 15
4126
1
Mar 15
15901
4
Nov 24
12965