Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
917 Näkymät

Hi guys,


Im trying to inherit from the save button of a wizard which is at the hr.leave model, i've been looking for it at the main code of Odoo, but i cant find it, i found the main wizard and i could put inside some fields, but when i see the main code, there is no button that i can inherit, does anybody know where can it be?


Thanks in advance.

Avatar
Hylkää
Paras vastaus

Search the Save button 'name' attribute (function name) from the wizard .xml file

Then search that function in the wizard .py file

Example:

Hope it help!

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
jouluk. 24
1524
0
tammik. 25
817
3
jouluk. 22
6205
0
jouluk. 19
2662
2
maalisk. 15
16400