Comment 11 for bug 1223243

Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Hello,

It appears that validated is called a lot of time but finally it should be called only once.
When the move is posted.

Actually account move validate function is called each time a move line is created even in draft. If entry_posted is allowed on journal if will be called for each move lines.... This make a lot of repetition. Things can be a lot worst if analytic/project module are installed as validate create and unlink analytic lines related to the move. This will launch all the triggers that depends on analytic line and literally redo a huge amount of work for nothing. If your analytic setup has a lot of data this can lead to have more than a second to create a move...

Regards

Nicolas