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

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 24
1736
0
gen 25
987
3
dic 22
6320
0
dic 19
2763
2
mar 15
16529