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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
Cronjob | Odoo12
Rozwiązane
|
|
1
lip 19
|
4159 | |
|
0
lut 22
|
1743 | ||
|
6
sie 19
|
9888 | ||
|
1
lut 24
|
2494 | ||
|
0
lut 24
|
1229 |