Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2884 Переглядів

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?

  

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
трав. 24
1820
1
лют. 17
5545
1
бер. 15
4221
1
бер. 15
16015
4
лист. 24
13446