Skip to content
Snippets Groups Projects
Commit a98a8f54 authored by Andrius Laukavičius's avatar Andrius Laukavičius
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#109729

Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
parent 61b5dd38
No related branches found
No related tags found
Loading
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