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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
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.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
Cronjob | Odoo12
Risolto
|
|
1
lug 19
|
4066 | |
|
0
feb 22
|
1595 | ||
|
6
ago 19
|
9624 | ||
|
1
feb 24
|
2205 | ||
|
0
feb 24
|
1000 |