Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7547 Lượt xem

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?  

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Cronjob | Odoo12 Đã xử lý
1
thg 7 19
4222
0
thg 2 22
1879
6
thg 8 19
10090
1
thg 2 24
2719
0
thg 2 24
1423