Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4140 มุมมอง

I noticed quite long waiting times for the list view to contracts (account.analytic.account) having many tasks open for invoicing.

What is the best way to deal with this. I check PostgreSQL activity - but there are no bad queries. Everything is in Odoo in "function fields" or in the ORM-Layer.

For now I found a quick solution: I just gave my own user the right "Analytic Accounting" and then I found the menu: Accounting/Configuration/Analytic Accounting/Analytic Accounts

--> This list-view is perfectly fast since it doesn't sum up all open tasks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Your problem might be that you are using too many function fields in list view, and your list might be too long.
Recommendation in technical memento is not to use function fields, but if you do i would recommend to use stored=True attribute in function field.

Best regards

อวตาร
ละทิ้ง
ผู้เขียน

actually this is not view we wrote - it is the standard of Odoo for contracts. Probably I should file a bug on Github since this view is using function fields. And I guess you are right - the function fields are causing the problems. But you couldn't use stored=True since each task in timesheet (with an analytic account that is a contract) will change the value and the value wouldn't be accurate as a stored one.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
3421
1
มี.ค. 15
5435
change between 2 Invoice formats แก้ไขแล้ว
1
ก.ค. 25
404
2
ก.ค. 25
587
1
ก.ค. 25
1660