Skip to Content
Menu
This question has been flagged
1602 Views

Hello. Here i'm again, with my crazy-never-answer questions.

This time i have a need to create an invoice with masive number of lines, around 150K, but could be more at certain point of year. As any could guess at this point, the system takes an insane time creating the account.invoice.lines (and later on, account.move.line).

After some time checking the code i find that models.py def _create() calls recs.modified(self._fields). This call allow other model fields that depends on some of this fields to recompute...but since im creating 150K lines i'd like to avoid this feature until all lines are created.

Is there any feature that helps me with my problem??

Thank you !! :)

Avatar
Discard

Choosing a better title without typo could improve the chance to get an answer.