-
- Downloads
[FIX] l10n_pe: create related field directly to speed it up
Odoo ORM has special optimization for installing module with a stored related fields, but it requires the final field be not computed [1] (I'm not sure why), which is not the case for the `group_id` field. Since `account.move.line` table may have millions of records, we have to optimize the installation and fill `l10n_pe_group_id` via a single sql query. [1]: https://github.com/odoo/odoo/blob/0aff8bb9484a23c0d875d3b12259dd4e0d51e716/odoo/fields.py#L818 opw-2762510 closes odoo/odoo#92779 Signed-off-by:Raphael Collet <rco@odoo.com>