Skip to content
Snippets Groups Projects
Commit 1138a247 authored by Andrius Laukavičius's avatar Andrius Laukavičius Committed by Habib (ayh)
Browse files

[FIX] hr_expense: improve computed field performance


If you have large amount of product.template records (e.g. over 40k),
`hr_expense` module can't be installed as you would get MemoryError. It
would consume all memory while computing `can_be_expensed` field.

For that, using `_auto_init` to make it less of a memory hog.

closes odoo/odoo#131371

X-original-commit: a98a8f54
Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
parent 88987393
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment