Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5945 Vizualizări

Hi,


i'm trying to call a function in python with following buttons:

<form string="Settings" class="oe_form_configuration">
     <header>
         <button string="Apply" type="object" name="execute" class="oe_highlight"/>
         <button string="Cancel" type="object" name="cancel" class="oe_link"/>
    </header>
     ...
</form>

But, they will never be called. After some time, I saw that is just called the method of update, that is, def write(...).

Can someone help me understand the problem?


Best regards

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hi,


I solved this with:

@api.one
Imagine profil
Abandonează
Cel mai bun răspuns

Put the name first before the string

 <button name="execute" string"Apply" type="object" class="oe_highlight"/>
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
feb. 17
2768
1
ian. 16
6124
4
ian. 16
6114
4
iul. 20
8218
0
dec. 19
3633