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

I'm trying to extend the leave Calendar and add a function at the hr_leave.py. i already understood what the self object presents. But i dont know wich Function Odoo Calls when i create a new Record for Example. Can someone tell me how Odoo creates an Object?  

Avatar
Abbandona
Risposta migliore

Hi,

  I think you are new to odoo .please go through this link https://www.odoo.com/documentation/12.0/ 

  when a new record creates a default method called create is called.we can super it if we want to make some changes on  the record while creating.

 if you are trying to extend the leave calendar model you can do it by using _inherit = 'model you want to change' and write the method you want to add. 

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 19
4066
0
feb 22
1595
6
ago 19
9623
1
feb 24
2199
0
feb 24
999