Skip to content
Snippets Groups Projects
Commit 756101db 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#131902

X-original-commit: 1138a247
Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
parent e14a069f
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment