Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2895 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 24
1830
1
feb 17
5552
1
mar 15
4228
1
mar 15
16027
4
nov 24
13485