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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
7174
瀏覽次數
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.
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
Cronjob | Odoo12
已解決
|
|
1
7月 19
|
4053 | |
|
0
2月 22
|
1571 | ||
|
6
8月 19
|
9584 | ||
|
1
2月 24
|
2150 | ||
|
0
2月 24
|
973 |