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

i customize some method in account.voucher especially when  validating customer payment and supplier payment ,, it works in my localhost, but there is an error in my server when i hit button validate, is anyone ever face this error ? 

ValueError: "CPU time limit exceeded." while evaluating
u'proforma_voucher()
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Your error is because your server have workers configured and you don't at localhost. You need to increase limit time cpu/real in the config file used to run Odoo server, where the workers are configured for multiprocessing

#this are defaults values, increase a little more and test

limit_time_cpu = 60

limit_time_real = 120 

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for your solution , i already try there suggestion but the error still exist .. Maybe because i have too many users accessing my server probably.

this could help https://www.odoo.com/forum/help-1/question/what-could-the-configuration-of-odoo-server-with-following-detail-87757

Is there any formula/thumb rule for assigning limit_time_cpu & limit_time_real?

It should have a value to cover your longer operations plus an extra percent of that time to be sure all your longer operations will run without been interrupted.

if you are at localhost, CPU time limit exceeded will not occur ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 15
8432
1
thg 5 22
5208
2
thg 9 21
21070
1
thg 5 21
11753
Expected singleton Đã xử lý
9
thg 3 20
42110